summaryrefslogtreecommitdiff
path: root/arch/m68k/mac
diff options
context:
space:
mode:
authorVasiliy Kulikov <segoon@openwall.com>2010-11-19 18:41:58 (GMT)
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-12-21 23:39:55 (GMT)
commit3a2dbd611b38cf9a026c0099a85701ad183d1949 (patch)
treeb6d181ab33effdcd0e0466ee583c0e224563e372 /arch/m68k/mac
parent26eb387265872b59566ddeed5e9bf142a6b9ff5b (diff)
downloadlinux-3a2dbd611b38cf9a026c0099a85701ad183d1949.tar.xz
power_supply: Fix use after free and memory leak
device_unregister() might free its argument. This leads to freed memory use in kfree(). Also use put_device() instead of kfree() as dev may be already used in another layer after call to device_add(). Signed-off-by: Vasiliy Kulikov <segoon@openwall.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'arch/m68k/mac')
0 files changed, 0 insertions, 0 deletions