summaryrefslogtreecommitdiffstats
path: root/ipc/sem.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2019-09-26 01:48:17 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2019-09-26 02:51:41 +0200
commitc231740dd95e854de5034cff8f49737d942bc098 (patch)
treef7ba22624e5c50be90c98a4b59f48c51eab4f47b /ipc/sem.c
parentipc/mqueue.c: delete an unnecessary check before the macro call dev_kfree_skb() (diff)
downloadlinux-c231740dd95e854de5034cff8f49737d942bc098.tar.xz
linux-c231740dd95e854de5034cff8f49737d942bc098.zip
ipc/mqueue: improve exception handling in do_mq_notify()
Null pointers were assigned to local variables in a few cases as exception handling. The jump target “out” was used where no meaningful data processing actions should eventually be performed by branches of an if statement then. Use an additional jump target for calling dev_kfree_skb() directly. Return also directly after error conditions were detected when no extra clean-up is needed by this function implementation. Link: http://lkml.kernel.org/r/592ef10e-0b69-72d0-9789-fc48f638fdfd@web.de Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Manfred Spraul <manfred@colorfullife.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/sem.c')
0 files changed, 0 insertions, 0 deletions