diff options
author | Nitin Gupta <ngupta@vflare.org> | 2013-01-02 20:53:41 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-14 07:40:02 +0400 |
commit | 397c60668aa5ae7130b5ad4e73870d7b8a787085 (patch) | |
tree | 3614efa94688c19233023c49d940fe0d3c061cf3 /arch/arm/mach-omap2/gpmc-smsc911x.h | |
parent | e16a922a27ec352537a8027cadc32dc156534ca5 (diff) | |
download | linux-397c60668aa5ae7130b5ad4e73870d7b8a787085.tar.xz |
staging: zram: fix invalid memory references during disk write
Fixes a bug introduced by commit c8f2f0db1 ("zram: Fix handling
of incompressible pages") which caused invalid memory references
during disk write. Invalid references could occur in two cases:
- Incoming data expands on compression: In this case, reference was
made to kunmap()'ed bio page.
- Partial (non PAGE_SIZE) write with incompressible data: In this
case, reference was made to a kfree()'ed buffer.
Fixes bug 50081:
https://bugzilla.kernel.org/show_bug.cgi?id=50081
Signed-off-by: Nitin Gupta <ngupta@vflare.org>
Cc: stable <stable@vger.kernel.org>
Reported-by: Mihail Kasadjikov <hamer.mk@gmail.com>
Reported-by: Tomas M <tomas@slax.org>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc-smsc911x.h')
0 files changed, 0 insertions, 0 deletions