commit | 38bd83f04c5e9695011dc5c294e0c4e6a9f9052d | [log] [tgz] |
---|---|---|
author | Firo Yang <firogm@gmail.com> | Sat Jun 06 13:16:42 2015 +0200 |
committer | Samuel Ortiz <sameo@linux.intel.com> | Tue Jun 09 00:34:22 2015 +0200 |
tree | 2a1b91d999e8f4ce753711206cfd266d7f5459fd | |
parent | 759afb8d288ffbe9a1cdb20af037b5c072dc38b2 [diff] |
NFC: st21nfcb: Remove inappropriate kfree on a devm_kzalloc pointer Since ndev->driver_data is allocated by devm_kzalloc(), we do not need the inappropriate kfree to free it in driver's remove function. Freeing will trigger when driver unloads. Cc: stable@vger.kernel.org Acked-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Firo Yang <firogm@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>