Re: [PATCH] IB/iser: Fix some error handling in iser_fast_reg_fmr()

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

 




but the below fix is the correct one for future code as well (ib_dma_map_sg returns int and not unsigned int):

diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h
index 0bf8512..def8cfe 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.h
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.h
@@ -205,7 +205,7 @@ struct iser_data_buf {
     struct scatterlist *sg;
     int                size;
     unsigned long      data_len;
-   unsigned int       dma_nents;
+   int                dma_nents;
  };


thoughts ?

That's fine as well, care to send a patch?



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux