CHERRY-PICK: UPSTREAM: dj: memory scribble in logi_dj
authorAlan Cox <alan@linux.intel.com>
Tue, 4 Sep 2012 14:10:08 +0000 (15:10 +0100)
committerChromeBot <chrome-bot@google.com>
Fri, 22 Mar 2013 02:09:04 +0000 (19:09 -0700)
commit56fd9ba47d3e95d61b9739a0362cd9dfe7d2ca32
treec9d7424c431d551e5628ac1224180687c81a1800
parentfe8636c744bcd58846c3708c3d9cb61824709428
CHERRY-PICK: UPSTREAM: dj: memory scribble in logi_dj

Allocate a structure not a pointer to it !

BUG=chromium-os:39354
TEST=manually tested on Link

(cherry picked from upstream commit 8a55ade76551e3927b4e41ee9e7751875d18bc25)
Change-Id: I36d4c6eec346aeb24d323cd6bcd426520d4dfdbd
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/46002
Reviewed-by: Yufeng Shen <miletus@chromium.org>
Commit-Queue: Andrew de los Reyes <adlr@chromium.org>
Tested-by: Andrew de los Reyes <adlr@chromium.org>
drivers/hid/hid-logitech-dj.c