Skip to content

Commit

Permalink
xen/pvcalls: use GFP_ATOMIC under spin lock
Browse files Browse the repository at this point in the history
A spin lock is taken here so we should use GFP_ATOMIC.

Fixes: 9774c6c ("xen/pvcalls: implement accept command")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
  • Loading branch information
Wei Yongjun authored and Boris Ostrovsky committed Jan 2, 2018
1 parent b3cf852 commit 4aac2ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/pvcalls-front.c
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ int pvcalls_front_accept(struct socket *sock, struct socket *newsock, int flags)
pvcalls_exit();
return ret;
}
map2 = kzalloc(sizeof(*map2), GFP_KERNEL);
map2 = kzalloc(sizeof(*map2), GFP_ATOMIC);
if (map2 == NULL) {
clear_bit(PVCALLS_FLAG_ACCEPT_INFLIGHT,
(void *)&map->passive.flags);
Expand Down

0 comments on commit 4aac2ca

Please sign in to comment.