mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +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>
(cherry picked from commit d0498872ff
)
This commit is contained in:
parent
008db6b970
commit
d8ecaef409
@ -495,7 +495,7 @@ static int hc_wlan_data_unpack_lzor(const u8 *inbuf, size_t inlen,
|
||||
/* Temporary buffer same size as the outbuf */
|
||||
templen = *outlen;
|
||||
tempbuf = kmalloc(templen, GFP_KERNEL);
|
||||
if (!outbuf)
|
||||
if (!tempbuf)
|
||||
return -ENOMEM;
|
||||
|
||||
/* Concatenate into the outbuf */
|
||||
|
Loading…
Reference in New Issue
Block a user