]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: greybus: light: fix attributes allocation
authorRui Miguel Silva <rmfrfs@gmail.com>
Fri, 30 Sep 2016 18:24:32 +0000 (19:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 13:49:26 +0000 (15:49 +0200)
commit3855eeec1a47cace93acd5ff89fb3c9bd593d307
tree30ffe5331c01654141bac4fb8eb3131939a17a08
parent85a42dc8676c2ea15fb44715eef85a7a419254a0
staging: greybus: light: fix attributes allocation

Fix allocation of attributes with the correct size, this also fix smatch
warning:

drivers/staging/greybus/light.c:293 channel_attr_groups_set()
warn: double check that we're allocating correct size: 8 vs 16

Signed-off-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/light.c