]> rtime.felk.cvut.cz Git - jailhouse.git/commit
driver: Correctly tag kmalloc allocation on behalf of user space
authorJan Kiszka <jan.kiszka@siemens.com>
Wed, 11 Mar 2015 06:39:43 +0000 (07:39 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 20 Mar 2015 06:10:39 +0000 (07:10 +0100)
commit5976889a7943fa5df471b0b0eafca954a5a660db
treeaaf787914903712129380cbfff18e454ba3c0a07
parent899c16c26d104943ff72ab4dbf069fea9699ebe3
driver: Correctly tag kmalloc allocation on behalf of user space

When the provided config size if beyond kmalloc limits, it may raise a
WARN_ON. Avoid this by tagging the allocation with __GFP_NOWARN. Also
properly tag it as GFP_USER instead of GFP_KERNEL.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
driver/cell.c