]> git.karo-electronics.de Git - mv-sheeva.git/commit
Staging: zram: Add a missing GFP_KERNEL specifier in zram_init_device()
authorJerome Marchand <jmarchan@redhat.com>
Wed, 30 Nov 2011 13:16:16 +0000 (14:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Dec 2011 22:59:48 +0000 (14:59 -0800)
commitfb927284e4d3a0c50a47063ff9be1fe3f5511f61
tree3e0668f81ee49068e1f5d70929a8256634dc8471
parent04e7bbad44c1a0c449719f90d507d13e015f1444
Staging: zram: Add a missing GFP_KERNEL specifier in zram_init_device()

The allocation of zram->compress_buffer is misssing a GFP_* specifier.
This is equivalent to GFP_NOWAIT but it is more likely a omission.
Since the allocation just above it uses GFP_KERNEL, there is no reason
to use GFP_NOWAIT here. Therefore, add GFP_KERNEL.

Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/zram/zram_drv.c