From: Mark A. Greer Date: Tue, 23 Sep 2014 23:38:02 +0000 (-0700) Subject: NFC: digital: Fix potential skb leaks in NFC-DEP code X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~28^2~16^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b15829ba5e82b919513f8ac70e97b4e474fae641;p=pandora-kernel.git NFC: digital: Fix potential skb leaks in NFC-DEP code When digital_in_send_cmd() or digital_tg_send_cmd() fail, they do not free the skb that was passed to them so the routine that allocated the skb should free it. Currently, there are several routines in the NFC-DEP code that don't do this so make them. Reviewed-by: Thierry Escande Tested-by: Thierry Escande Signed-off-by: Mark A. Greer Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed