Re: [PATCH for-next 03/12] IB/hfi1: Remove the debug trace message in pin_sdma_pages()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/27/2017 11:30 AM, Leon Romanovsky wrote:

BTW, by looking on something else,

1. I saw that you are not checking for kcalloc failure in drivers/infiniband/hw/hfi1/verbs.c

1138                         empty_buf = kcalloc(extra_bytes, sizeof(u8),
1139                                             GFP_KERNEL);
1140                         seg_pio_copy_mid(pbuf, empty_buf, extra_bytes);

2. The following code in drivers/infiniband/hw/hfi1/sdma.c, can and
should be replaced by kvmalloc. You are incorrectly open-coded failback.

1467                 sde->tx_ring =
1468                         kcalloc(descq_cnt, sizeof(struct sdma_txreq *),
1469                                 GFP_KERNEL);
1470                 if (!sde->tx_ring)
1471                         sde->tx_ring =
1472                                 vzalloc(
1473                                         sizeof(struct sdma_txreq *) *
1474                                         descq_cnt);


Thanks, we will look into fixing these two issues.

-Denny
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux