mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-23 16:09:57 +07:00
9ccb645683
Currently the null check on key is occurring after the strcasecmp on
the key, hence there is a potential null pointer dereference on key.
Fix this by checking if key is null first. Also replace the == 0
check on strcasecmp with just the ! operator.
Detected by CoverityScan, CID#1248787 ("Dereference before null check")
Fixes:
|
||
---|---|---|
.. | ||
altera-comp.c | ||
altera-exprt.h | ||
altera-jtag.c | ||
altera-jtag.h | ||
altera-lpt.c | ||
altera.c | ||
Kconfig | ||
Makefile |