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 faafa79..e555476 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);