]> 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)
commit5ffe002de57594f3072f623a821acfa308fb7285
tree3af6ae3667cc53d7b48cecf0a22b73bbae99c945
parente25ec8d8e26242514d40c9567bdd76986a927d0d
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