staging: unisys: visorchannel_clear(): Avoid 64KB memory leak

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>
This commit is contained in:
Jes Sorensen 2015-05-05 18:36:28 -04:00 committed by Greg Kroah-Hartman
parent ff7bd1fa9f
commit 1dbdf10471

View 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);