diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-03-14 08:47:59 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-21 12:35:02 +0300 |
commit | 7ae3525ee708f867a2d2321c246b285136cdbed8 (patch) | |
tree | 7b1ef828f695e720dcadb472c4f818094d90c371 /sound/pci/hda/patch_via.c | |
parent | 385bddaf5ee11acdf8d823ecc429c675b5416ac2 (diff) | |
download | linux-7ae3525ee708f867a2d2321c246b285136cdbed8.tar.xz |
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 <4.15: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/pci/hda/patch_via.c')
0 files changed, 0 insertions, 0 deletions