]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit4e10fd5b4a7f4100007147558c304da3e73b25cf
tree56594dc614d5dac3533583fc9c230d23ccc37d1d
parent77751427a1ff25b27d47a4c36b12c3c8667855ac
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: ba7d49b1f0 ("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