Uprobe: fix NULL dereference on x86 accepted/tizen/3.0/common/20161208.153832 accepted/tizen/3.0/mobile/20161208.065319 accepted/tizen/3.0/tv/20161208.065335 accepted/tizen/3.0/wearable/20161208.065347 accepted/tizen/common/20161207.184843 accepted/tizen/mobile/20161208.012921 accepted/tizen/tv/20161208.012930 accepted/tizen/wearable/20161208.012942 submit/tizen/20161207.141311 submit/tizen_3.0/20161207.141254 submit/tizen_3.0/20161208.043057
authorAlexander Aksenov <a.aksenov@samsung.com>
Fri, 25 Nov 2016 16:02:42 +0000 (19:02 +0300)
committerDmitry Kovalenko <d.kovalenko@samsung.com>
Tue, 6 Dec 2016 07:22:30 +0000 (23:22 -0800)
commit716b21cc4af3d012308b2bf6cbb83fd25c7ea53b
tree33f7a0f925df5a060d2255e95f0f648b773b39af
parenta4ffd8968848d2cd35266d95fd9b0b6cb5779888
Uprobe: fix NULL dereference on x86

When uprobe_handler_part2() is called, it dereferences
pre_handler callback without any check, but
uprobe_handler_part2() is called itself from
uprobe_handler_atomic() when pre_handler is NULL.

Change-Id: Ia4cdbdc20c50aa3d891c790eea3545da06506f47
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
uprobe/arch/x86/swap-asm/swap_uprobes.c