]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: avoid 0 sized arrays
authorSasha Levin <sasha.levin@oracle.com>
Tue, 24 Feb 2015 19:14:35 +0000 (14:14 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Feb 2015 20:39:09 +0000 (15:39 -0500)
commit76ea9a71996b279de36b635f6df34a385a31439d
tree56594dc614d5dac3533583fc9c230d23ccc37d1d
parent626d5f3aaed7c901481d2c2ddecf4c684440180e
rtnetlink: avoid 0 sized arrays

Arrays (when not in a struct) "shall have a value greater than zero".

GCC complains when it's not the case here.

Fixes: 47b8fbf467 ("rtnetlink: provide api for getting and setting slave info")
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c