[PATCH] R3964: fix GFP_KERNEL allocations in timer function
authorDavid Woodhouse <dwmw2@infradead.org>
Sun, 25 Jun 2006 12:48:41 +0000 (05:48 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:17 +0000 (10:01 -0700)
commit78dbe706e22f54bce61571ad837238382e1ba5f9
tree4da3f15df037bc9ff7b11c42c17b9bf523a1a930
parentc836043e708d50bb301479d0db8e0dc77d4f52ca
[PATCH] R3964: fix GFP_KERNEL allocations in timer function

In the error case, add_msg() gets called from timer functions, so should
be using GFP_ATOMIC instead of GFP_KERNEL.

Ref: http://bugzilla.kernel.org/show_bug.cgi?id=6659.  Thanks to Christian
Werner <chw@ch-werner.de> for reporting, and for the initial fix.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/n_r3964.c