Don't use kmalloc with GFP_KERNEL within an rcu_read_lock().
err = -ENOENT;
else {
void *data;
- ans_skb = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL);
+ ans_skb = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC);
if (!ans_skb) {
err = -ENOMEM;
goto err;
{
struct swt_iterator_hash *ih;
- swt_iter->private = ih = kmalloc(sizeof *ih, GFP_KERNEL);
+ swt_iter->private = ih = kmalloc(sizeof *ih, GFP_ATOMIC);
if (ih == NULL)
return 0;
{
struct swt_iterator_hash2 *ih2;
- swt_iter->private = ih2 = kmalloc(sizeof *ih2, GFP_KERNEL);
+ swt_iter->private = ih2 = kmalloc(sizeof *ih2, GFP_ATOMIC);
if (ih2 == NULL)
return 0;