qdisc: meta return ENOMEM on alloc failure
authorstephen hemminger <stephen@networkplumber.org>
Fri, 27 Sep 2013 00:40:11 +0000 (17:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Sep 2013 19:47:43 +0000 (15:47 -0400)
commit0c4e4020f0145ed84b0ef9e3fb79c4a022e77e47
tree04694b8d25bba52dd554843465035a0e48261b08
parent90de527d7ec77e509a22596d8f9eae9b90fd28ca
qdisc: meta return ENOMEM on alloc failure

Rather than returning earlier value (EINVAL), return ENOMEM if
kzalloc fails. Found while reviewing to find another EINVAL condition.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/em_meta.c