aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorThibaut VARÈNE <hacks@slashdirt.org>2020-08-18 11:57:31 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-18 12:00:55 +0200
commitd0498872ff71a79f0676cfc6b6b547c499bff712 (patch)
treedff9da0a53e6dd9d970cbbee3145136b55ae9f7a /target/linux
parent5388c725177bc0168c0e67b12de75e1086a2dd09 (diff)
downloadupstream-d0498872ff71a79f0676cfc6b6b547c499bff712.tar.gz
upstream-d0498872ff71a79f0676cfc6b6b547c499bff712.tar.bz2
upstream-d0498872ff71a79f0676cfc6b6b547c499bff712.zip
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>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c b/target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c
index 4559418de7..8861814be4 100644
--- a/target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c
+++ b/target/linux/generic/files/drivers/platform/mikrotik/rb_hardconfig.c
@@ -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 */