commit | 8a3bc6e31b2b40f5c8f20ba355c34203ea21abd0 | [log] [tgz] |
---|---|---|
author | Aditya Pakki <pakki001@umn.edu> | Sun Dec 15 10:14:51 2019 -0600 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Feb 24 08:34:42 2020 +0100 |
tree | b1f0f2b5bdd0865d2ea73b73b25bbe7e80781aa0 | |
parent | 85a19b0e31e256e77fd4124804b9cec10619de5e [diff] |
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>