Files
linux/drivers/misc
Colin Ian King f6ea3c03ec altera-stapl: check for a null key before strcasecmp'ing it
[ Upstream commit 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: fa766c9be5 ("[media] Altera FPGA firmware download module")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-13 08:51:56 +01:00
..
2017-11-15 18:21:04 -08:00
2018-08-21 23:54:18 -04:00
2019-07-14 08:11:21 +02:00
2019-12-05 09:21:27 +01:00
2017-08-28 16:55:48 +02:00
2019-11-20 18:47:31 +01:00
2018-04-23 13:31:27 +02:00