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>
master
Thibaut VARÈNE 2020-08-18 11:57:31 +02:00 committed by Adrian Schmutzler
parent 5388c72517
commit d0498872ff
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,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 */