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: https://git.stricted.de/?a=commitdiff_plain;h=1dbdf10471cec85f8ea036d609097552eb0ac441;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.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);