fore200e: Fix incorrect checks of NULL pointer dereference
authorAditya Pakki <pakki001@umn.edu>
Sun, 15 Dec 2019 16:14:51 +0000 (10:14 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 00:28:17 +0000 (16:28 -0800)
commitbbd20c939c8aa3f27fa30e86691af250bf92973a
tree19ac769e171ba05cb9d299d11ffa02b6f1086513
parent03d51c4fc50781bc92ba68dcc03d01ce3656e64a
fore200e: Fix incorrect checks of NULL pointer dereference

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>
drivers/atm/fore200e.c