lkml.org 
[lkml]   [2019]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2] appletalk: Fix potential NULL pointer dereference in unregister_snap_client
From
From: Yue Haibing <yuehaibing@huawei.com>
Date: Thu, 14 Mar 2019 13:47:59 +0800

> From: YueHaibing <yuehaibing@huawei.com>
>
> 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>
> ---
> v2: del timer in aarp_proto_init error patch

Applied, thanks for following up.

\
 
 \ /
  Last update: 2019-03-15 19:27    [W:0.028 / U:9.084 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site