netfilter: xt_quota: fix wrong return value (error case)
authorPatrick McHardy <kaber@trash.net>
Thu, 20 Aug 2009 02:47:34 +0000 (02:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Aug 2009 02:09:23 +0000 (19:09 -0700)
commit2149f66f49ab07515666127bf5140c5c94677af8
treeb013b8f3b4b3aa8e4303df7affac09f6aafe7363
parentca6982b858e1d08010c1d29d8e8255b2ac2ad70a
netfilter: xt_quota: fix wrong return value (error case)

Success was indicated on a memory allocation failure, thereby causing
a crash due to a later NULL deref.
(Affects v2.6.30-rc1 up to here.)

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/xt_quota.c