]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
NFC: pn533: Fix use after free
authorSzymon Janc <szymon.janc@tieto.com>
Mon, 29 Oct 2012 13:04:43 +0000 (14:04 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 19 Nov 2012 23:09:26 +0000 (00:09 +0100)
commit770f750bc2b8312489c8e45306f551d08a319d3c
tree2d7cdc8555287311e9b1e7003e938ca70aa4c02c
parent60ad07ab6bc86f48b6ebda1788d79ca5f88d824c
NFC: pn533: Fix use after free

cmd was freed in pn533_dep_link_up regardless of
pn533_send_cmd_frame_async return code. Cmd is passed as argument to
pn533_in_dep_link_up_complete callback and should be freed there.

Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533.c