]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 7 Apr 2020 08:50:00 +0000 (10:50 +0200)
commit3d562ecb57ca3a88255e1e0511bc5eb518dbe480
treed1996246c3c33a8465c31fa0f378055e72611edf
parentb76120fd4cd1c16f5edc6f44bf95031f5e06da7c
fore200e: Fix incorrect checks of NULL pointer dereference

BugLink: https://bugs.launchpad.net/bugs/1867837
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/atm/fore200e.c