mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-10 14:43:54 +08:00
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:
parent
ff7bd1fa9f
commit
1dbdf10471
@ -236,7 +236,7 @@ visorchannel_clear(struct visorchannel *channel, ulong offset, u8 ch,
|
||||
written += thisbytes;
|
||||
nbytes -= thisbytes;
|
||||
}
|
||||
return 0;
|
||||
err = 0;
|
||||
|
||||
cleanup:
|
||||
vfree(buf);
|
||||
|
Loading…
Reference in New Issue
Block a user