]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
appletalk: Fix potential NULL pointer dereference in unregister_snap_client
authorYueHaibing <yuehaibing@huawei.com>
Thu, 14 Mar 2019 05:47:59 +0000 (13:47 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Mar 2019 18:25:48 +0000 (11:25 -0700)
commit9804501fa1228048857910a6bf23e085aade37cc
treed51cf99870eb02f0b90107a449586d2ab20dbe9e
parentf261c4e529dac5608a604d3dd3ae1cd2adf23c89
appletalk: Fix potential NULL pointer dereference in unregister_snap_client

register_snap_client may return NULL, all the callers
check it, but only print a warning. This will result in
NULL pointer dereference in unregister_snap_client and other
places.

It has always been used like this since v2.6

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/atalk.h
net/appletalk/aarp.c
net/appletalk/ddp.c