mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-12 21:55:38 +00:00
generic: platform/mikrotik: fix incorrect test
The test is meant to check the result of the preceding kmalloc() Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org> Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
parent
b616f0dd5c
commit
365b212ea9
@ -480,7 +480,7 @@ static int hc_wlan_data_unpack_lzor(const u8 *inbuf, size_t inlen,
|
|||||||
/* Temporary buffer same size as the outbuf */
|
/* Temporary buffer same size as the outbuf */
|
||||||
templen = *outlen;
|
templen = *outlen;
|
||||||
tempbuf = kmalloc(templen, GFP_KERNEL);
|
tempbuf = kmalloc(templen, GFP_KERNEL);
|
||||||
if (!outbuf)
|
if (!tempbuf)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
/* Concatenate into the outbuf */
|
/* Concatenate into the outbuf */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user