NFC: pn533: double free on error in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 May 2016 07:32:19 +0000 (10:32 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 4 Jul 2016 10:15:00 +0000 (12:15 +0200)
commit6d2f70cae481a2e8e85a244d3b2d36828dadff83
tree6b8e75b375f2a032a559263ceab325c3d9e04f92
parentf86dec94e3a86c992a637df1c301a4df25a85801
NFC: pn533: double free on error in probe()

We can't pass devm_ allocated pointers to kfree() because they will be
freed again after the drive is unloaded.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn533/usb.c