From: Wei Yongjun <[email protected]> A spin lock is taken here so we should use GFP_ATOMIC.
Signed-off-by: Wei Yongjun <[email protected]> --- drivers/infiniband/hw/usnic/usnic_uiom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
