From: Jes Sorensen Date: Tue, 5 May 2015 22:36:28 +0000 (-0400) Subject: staging: unisys: visorchannel_clear(): Avoid 64KB memory leak X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1dbdf10471cec85f8ea036d609097552eb0ac441;p=openwrt%2Fstaging%2Fblogic.git staging: unisys: visorchannel_clear(): Avoid 64KB memory leak Signed-off-by: Jes Sorensen Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/visorchannel.c b/drivers/staging/unisys/visorbus/visorchannel.c index faafa797ee78..e555476be54d 100644 --- a/drivers/staging/unisys/visorbus/visorchannel.c +++ b/drivers/staging/unisys/visorbus/visorchannel.c @@ -236,7 +236,7 @@ visorchannel_clear(struct visorchannel *channel, ulong offset, u8 ch, written += thisbytes; nbytes -= thisbytes; } - return 0; + err = 0; cleanup: vfree(buf);