Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4aac2caf authored by Wei Yongjun's avatar Wei Yongjun Committed by Boris Ostrovsky
Browse files

xen/pvcalls: use GFP_ATOMIC under spin lock



A spin lock is taken here so we should use GFP_ATOMIC.

Fixes: 9774c6cc ("xen/pvcalls: implement accept command")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
parent b3cf8528
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);