diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-03-14 13:47:59 +0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2019-12-10 18:01:33 +0000 |
commit | 1551894964c90588b285d3a4f7da516e0ee9025a (patch) | |
tree | 3e5f9ae74ae5777dcaf88dfd570762bc5250defa /net/sctp/ipv6.c | |
parent | 0669f62b66de87c6628edc6b5e7e7b317a4b8876 (diff) | |
download | linux-stable-1551894964c90588b285d3a4f7da516e0ee9025a.tar.gz linux-stable-1551894964c90588b285d3a4f7da516e0ee9025a.tar.bz2 linux-stable-1551894964c90588b285d3a4f7da516e0ee9025a.zip |
appletalk: Fix potential NULL pointer dereference in unregister_snap_client
commit 9804501fa1228048857910a6bf23e085aade37cc upstream.
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>
[bwh: Backported to 3.16: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/sctp/ipv6.c')
0 files changed, 0 insertions, 0 deletions