x86: dma-mapping: fix GFP_ATOMIC macro usage
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 24 Jan 2014 13:49:58 +0000 (14:49 +0100)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Mar 2014 16:13:45 +0000 (17:13 +0100)
commit42458ecf9f1498ff0b227b59b23eee9890abbc12
tree32c759aa9def4b0a578f18fc890684fe20dde2a3
parent7addaee35a868cd036c0d5a64388380ce47c1bc5
x86: dma-mapping: fix GFP_ATOMIC macro usage

commit c091c71ad2218fc50a07b3d1dab85783f3b77efd upstream.

GFP_ATOMIC is not a single gfp flag, but a macro which expands to the other
flags, where meaningful is the LACK of __GFP_WAIT flag. To check if caller
wants to perform an atomic allocation, the code must test for a lack of the
__GFP_WAIT flag. This patch fixes the issue introduced in v3.5-rc1.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/x86/kernel/pci-dma.c