Staging: zram: Fix kunmapping order
authorJerome Marchand <jmarchan@redhat.com>
Wed, 13 Jul 2011 15:20:05 +0000 (17:20 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 18 Jul 2011 20:22:52 +0000 (13:22 -0700)
commitdffbb44d5575facfb38a57cbb2925b03a5fc751b
tree360ece140c4e37c6e0ba119587692a31ec594995
parent7453ea886e875544b50aa43b6f86313421bbc492
Staging: zram: Fix kunmapping order

This patch fixes the unmapping order of KM_USER0/1 in
handle_uncompressed_page() and zram_read() so that kmap()/kunmap() calls
are correctly nested.

Reported-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Reviewed-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zram/zram_drv.c