]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fore200e: Fix incorrect checks of NULL pointer dereference
authorAditya Pakki <pakki001@umn.edu>
Sun, 15 Dec 2019 16:14:51 +0000 (10:14 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:38:15 +0000 (08:38 +0100)
commit812b844299ddc53bc88da75d9f8f8347e5a7c0ab
tree8e43c1bd2448646150c4d6fe0ca0e4fc3368df18
parent6e2900369a3711d167255355758f984fd3cc2e6d
fore200e: Fix incorrect checks of NULL pointer dereference

[ Upstream commit bbd20c939c8aa3f27fa30e86691af250bf92973a ]

In fore200e_send and fore200e_close, the pointers from the arguments
are dereferenced in the variable declaration block and then checked
for NULL. The patch fixes these issues by avoiding NULL pointer
dereferences.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/atm/fore200e.c