From: David Herrmann Date: Tue, 29 Jul 2014 15:14:17 +0000 (+0200) Subject: HID: uhid: avoid dangling pointers in uhid context X-Git-Tag: fixes-for-v3.18-merge-window~27^2^7~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41c4a46423c08274ef83cdbd44bbd2066cba59bb;p=pandora-kernel.git HID: uhid: avoid dangling pointers in uhid context Avoid keeping uhid->rd_data and uhid->rd_size set in case uhid_dev_create2() fails. This is non-critical as we never flip uhid->running and thus never enter uhid_dev_destroy(). However, it's much nicer for debugging if pointers are only set if they point to valid data. Signed-off-by: David Herrmann Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed