mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
Merge r5870 from the iser branch
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6262 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -72,6 +72,7 @@ static int isert_buf_alloc_pg(struct ib_device *ib_dev,
|
||||
|
||||
res = ib_dma_map_sg(ib_dev, isert_buf->sg, isert_buf->sg_cnt, dma_dir);
|
||||
if (unlikely(!res)) {
|
||||
--i; /* do not overrun isert_buf->sg */
|
||||
pr_err("Failed to DMA map iser sg:%p len:%d\n",
|
||||
isert_buf->sg, isert_buf->sg_cnt);
|
||||
res = -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user