Message ID | CAPgLHd83+trVvgG1qK8YWLCEGotnWeQjcpXtv+aM72P+Tyj80Q@mail.gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/drivers/infiniband/hw/usnic/usnic_uiom.c b/drivers/infiniband/hw/usnic/usnic_uiom.c index c44acbc..d76ea56 100644 --- a/drivers/infiniband/hw/usnic/usnic_uiom.c +++ b/drivers/infiniband/hw/usnic/usnic_uiom.c @@ -557,7 +557,7 @@ struct device **usnic_uiom_get_dev_list(struct usnic_uiom_pd *pd) int i = 0; spin_lock(&pd->lock); - devs = kzalloc(sizeof(*devs)*(pd->dev_cnt + 1), GFP_KERNEL); + devs = kzalloc(sizeof(*devs)*(pd->dev_cnt + 1), GFP_ATOMIC); if (!devs) { devs = ERR_PTR(-ENOMEM); goto out;