NFC: pn533: Fix mem leak in pn533_in_dep_link_up
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Thu, 11 Oct 2012 12:04:00 +0000 (14:04 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 19 Nov 2012 23:09:26 +0000 (00:09 +0100)
commit70418e6efcf4f8652cc08e3f2ab8ae35f0948fd9
tree68f02c2d54409ab028336ed6acb2922297f188ac
parent770f750bc2b8312489c8e45306f551d08a319d3c
NFC: pn533: Fix mem leak in pn533_in_dep_link_up

cmd is allocated in pn533_dep_link_up and passed as an arg to
pn533_send_cmd_frame_async together with a complete cb.

arg is passed to the cb and must be kfreed there.

Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533.c