]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: pn533: Fix memleak while scheduling next cmd
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Wed, 3 Apr 2013 06:02:03 +0000 (08:02 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 11 Apr 2013 14:29:02 +0000 (16:29 +0200)
commit4ab87f990b02359a2b554710e3a509f83bdff1f3
tree3af6ae3667cc53d7b48cecf0a22b73bbae99c945
parent27550deb68bb02ae31accf941f4c12f44403267f
NFC: pn533: Fix memleak while scheduling next cmd

In case of error from __pn533_send_frame_async() while sending
next cmd from the queue (cmd_wq), cmd->req, cmd->resp and
cmd->arg pointers won't be freed.

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