]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
intel-hid: allocate correct amount of memory for private struct
authorWolfram Sang <wsa@the-dreams.de>
Tue, 28 Jun 2016 09:02:56 +0000 (17:02 +0800)
committerKamal Mostafa <kamal@canonical.com>
Tue, 28 Jun 2016 17:45:10 +0000 (10:45 -0700)
commita735d297c274cd27ed4c06611e1f5888d0a47918
treeef977bd9541893cf8202b4f21d549a2602580dfb
parent36074d979381b3e9f245f93bfe1aa222df93464c
intel-hid: allocate correct amount of memory for private struct

BugLink: http://bugs.launchpad.net/bugs/1589886
We want the size of the struct, not of a pointer to it. To be future
proof, just dereference the pointer to get the desired type.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
(cherry picked from commit e8b69a51b4e72a168e8b3bc5fcac39a7de339864)
Signed-off-by: Alex Hung <alex.hung@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/platform/x86/intel-hid.c