[PATCH] generic: platform/mikrotik: fix incorrect test

Adrian Schmutzler mail at adrianschmutzler.de
Tue Aug 18 05:26:55 EDT 2020


> -----Original Message-----
> From: openwrt-devel [mailto:openwrt-devel-bounces at lists.openwrt.org]
> On Behalf Of Thibaut VARÈNE
> Sent: Dienstag, 18. August 2020 11:02
> To: openwrt-devel at lists.openwrt.org
> Cc: Thibaut VARÈNE <hacks at slashdirt.org>
> Subject: [PATCH] generic: platform/mikrotik: fix incorrect test

And to be merged, this needs a commit message.

Best

Adrian

> 
> Signed-off-by: Thibaut VARÈNE <hacks at slashdirt.org>
> ---
>  .../generic/files/drivers/platform/mikrotik/rb_hardconfig.c     | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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 */
> --
> 2.24.3 (Apple Git-128)
> 
> 
> _______________________________________________
> openwrt-devel mailing list
> openwrt-devel at lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20200818/34c576ea/attachment.sig>


More information about the openwrt-devel mailing list