]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/nfc/mei_phy.c
wil6210: fix secondary connect
[karo-tx-linux.git] / drivers / nfc / mei_phy.c
index 85f90090cc1d1e167de6391e3481b597451555bd..11c7cbdade6663fe73e680a853df9908d1e18286 100644 (file)
@@ -13,9 +13,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the
- * Free Software Foundation, Inc.,
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
@@ -129,7 +127,7 @@ void nfc_mei_event_cb(struct mei_cl_device *device, u32 events, void *context)
 
                reply_size = mei_cl_recv(device, skb->data, MEI_NFC_MAX_READ);
                if (reply_size < MEI_NFC_HEADER_SIZE) {
-                       kfree(skb);
+                       kfree_skb(skb);
                        return;
                }