From: Benjamin Tissoires Date: Tue, 4 Dec 2012 15:27:54 +0000 (+0100) Subject: HID: i2c-hid: also call i2c_hid_free_buffers in i2c_hid_remove X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~36^2^3~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=134ebfd86b9353a3d98f9f4e93b4e79824a4b49a;p=pandora-kernel.git HID: i2c-hid: also call i2c_hid_free_buffers in i2c_hid_remove In the case where the hid driver in charge of handling the hid part of the device (hid-generic for instance) fails at probe, neither i2c_hid_start nor i2c_hid_stop are called. Thus, the buffers allocated in i2c_hid_probe are never freed. Signed-off-by: Benjamin Tissoires Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed