]> git.baikalelectronics.ru Git - kernel.git/commit
appletalk: Fix OOPS in atalk_release().
authorDavid S. Miller <davem@davemloft.net>
Fri, 1 Apr 2011 01:59:10 +0000 (18:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Apr 2011 01:59:10 +0000 (18:59 -0700)
commitc67cbf243030754955720782b69c679150609420
treebc4075ba65a4187ca46642589f5299cde399ae22
parent444864380574d73f9492c9eb1552882eace3b55e
appletalk: Fix OOPS in atalk_release().

Commit b4972ce24e454ebe3be01ad212486059c517b3b8 ("appletalk: remove
the BKL") added a dereference of "sk" before checking for NULL in
atalk_release().

Guard the code block completely, rather than partially, with the
NULL check.

Reported-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/appletalk/ddp.c