staging: unisys: visorchannel_clear(): Avoid 64KB memory leak
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 5 May 2015 22:36:28 +0000 (18:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 13:26:03 +0000 (15:26 +0200)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchannel.c

index faafa797ee789f6e1beefc5b97117faaa6c26744..e555476be54d70e8e8f5e0d719249491abd1a3ae 100644 (file)
@@ -236,7 +236,7 @@ visorchannel_clear(struct visorchannel *channel, ulong offset, u8 ch,
                written += thisbytes;
                nbytes -= thisbytes;
        }
-       return 0;
+       err = 0;
 
 cleanup:
        vfree(buf);