I see now that there is documentation in ib_req_notify_cq().
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
ount);
430 mutex_unlock(_list_mutex);
431
432 return device;
433 }
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Possible off by one, but mostly the whitespace makes me itch.
Jim was not on the CC list.
On Thu, Dec 17, 2015 at 07:24:15PM -0500, Jubin John wrote:
> From: Jim Snow
>
> The link state will transition from ARMED to ACTIVE when a non-SC15
> packet arrives, but the driver
Nice. Whenever you see a bug like this, you should report it to
kernel-janitors because you know that 10 other people have made the same
mistake.
I will take care of it.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of
if (ret <= 0) {
> + tid_group_add_tail(grp, >tid_group_list);
> + hfi1_cdbg(TID,
> + "Failed to program RcvArray group %d", ret);
> + goto unlock;
We print a
k);
> + node = mmu_rb_search_by_entry(>tid_rb_root, rcventry);
> + if (!node) {
> + spin_unlock(>rb_lock);
> + return -EBADF;
> + }
> + rb_erase(>rbnode, >tid_rb_root);
> + spin_unlock(>rb_lock);
> + if (grp)
> +
unsigned start, u16 count, struct page **pages,
> + u32 *tidlist, unsigned *tididx, unsigned *pmapped)
> +{
It's not clear what a zero return from this function means. Could we
add some documentation?
regards,
dan carpenter
--
To unsubscribe from this list: send the
iginal... I've done that for
static checker warnings. Lesson learned, hopefully.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
RR(flow_rule));
582 flow_rule = NULL;
583 }
584 out:
585 kfree(match_v);
586 kfree(match_c);
587 return flow_rule;
588 }
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma"
ile (i)
> + if (tx->iovecs[i--].flags & TXREQ_FLAGS_IOVEC_LAST_PKT) {
> + defer = true;
> + break;
> }
In the original code, we checked tx->iovecs[0].flags but now we skip
that one. Going back to the original for loop is probably the
attr);
Do we need to verify (hfi1_check_ah(ibqp->device, >remote_ah_attr))
before calling ah_to_sc()?
825 qp->s_sde = qp_to_sdma_engine(qp, qp->s_sc);
826 }
827 }
regards,
dan carpenter
--
To unsubscribe from this list: send
checkpatch fixes are still on the list and then take over from
there...
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
I had all the same issues that Greg did with these patch descriptions so
it was predictable that he was going to complain.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More ma
tuff goes through the linux-media
tree.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
ev->bus),
> + dd->pcidev->bus->number,
> + PCI_SLOT(dd->pcidev->devfn),
> + PCI_FUNC(dd->pcidev->devfn),
> + kind);
> + name[sizeof(name) - 1] = 0; /* make sure the string is terminated */
No need. snprintf
> default:
> ret = -EINVAL;
> - goto done;
> }
> ret = set_link_state(ppd, dev_state);
> break;
Wut? No it's not.
regards,
dan carpenter
--
To unsub
ch.
Did Dennis write this patch or did he Ack it or Review it somehow?
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
invalid.
>*/
> return -EINVAL;
> + } else if (cmd == HFI1_SNOOP_IOCSETLINKSTATE) {
> + /* We do not support the old setlink state */
> + return -EINVAL;
Just delete it and let the default in the switch statement return
-ENOTTY.
th a final patch which exposes the set of operations.
>
> Is this acceptable?
Yeah. It's fine. Don't add warnings about unused static functions
though. Also we like to see a user in the same patchset so don't add
infrastructure first and the user code the next year or whatever.
regar
On Wed, Nov 11, 2015 at 02:03:02PM +, Luick, Dean wrote:
>
>
> > -Original Message-
> > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma-
> > ow...@vger.kernel.org] On Behalf Of Dan Carpenter
> > Sent: Wednesday, November 11, 2015 2:45 A
;
We're basically just trying to calculate a bunch of strlen()s but there
is a lot of extra code to generate debug output. It would be better to
remove it in a later patch.
> + dd->ndevcntrs++;
> + index++;
> + }
character limit but it's fine.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Nov 04, 2015 at 11:44:17PM -0500, jubin.j...@intel.com wrote:
> From: jareer.h.abdel-qader <jareer.h.abdel-qa...@intel.com>
This should be "Jareer Abdel-Qader <jareer.h.abdel-qa...@intel.com>".
regards,
dan carpenter
--
To unsubscribe from this list: send th
sc_return_credits(uctxt->sc);
Relying on hidden sanity checks makes the code harder to read.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
d your energy. We accept all
checkpatch fixes if they are half way decent.
Maybe just put a comment in the header about the full hardware name?
This patch breaks cscope and we don't end up actually using the hardware
name in the end...
regards,
dan carpenter
--
To unsubscribe from this list: send th
st keeping it around because
you are afraid to delete things.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
use macro majic to hide the first twelve zillion characters. If
we can't even see the name when it is used, then why does it exist? Also
macro magic breaks grep and cscope. Just think of a better name to
begin with and get rid of the PC macro.
regards,
dan carpenter
--
To unsubscribe from this l
isabled.
Do we really need the config to be there? Distros are going to enable
it. Who is it who wants to disable the config? Also is it better to
default to off or on for this code, what are the upsides and downsides
of that choice?
regards,
dan carpenter
--
To unsubscribe from this list: sen
ople get scared about deleting debug code but you
can add it back if there is really a bug.
/me chants, "delete. delete. delete."
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vge
this code well enough to say for sure. Hence this
email. :)
158 if (status) {
159 pr_err("%s(): Failed to resolve dmac from gid."
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma&qu
this matter? It's in a thread so it sorts fine either way.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
On Tue, Oct 27, 2015 at 11:45:18AM +0200, Leon Romanovsky wrote:
> On Tue, Oct 27, 2015 at 11:19 AM, Dan Carpenter
> <dan.carpen...@oracle.com> wrote:
> > On Sun, Oct 25, 2015 at 01:21:11PM +0200, Leon Romanovsky wrote:
> >> On Sun, Oct 25, 2015 at 12:17 PM, Muhammad
> problems and fix them in the patchset.
>
> My bad, I will fix in v3.
I don't think it's worth redoing the patchset over because it's just a
Sparse warning, not a bug. But for the future.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
What values work well for this parameter?
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
ated
white space change. Don't mix white space changes in with a behavior
change patch because it makes it hard to review.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
return ret;
It is fewer lines but it is way more complicated. It very quickly
starts to bump into the 80 character limit.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordo
;
This should have just been folded in with the previous patch. Don't
introduce problems and fix them in the patchset.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
niszyn <mike.marcinis...@intel.com>
> Signed-off-by: Ira Weiny <ira.we...@intel.com>
> ---
The whole point of this patch is to do:
> - if (qp->s_sde)
> + if (qp->s_sde && qp->s_ahgidx >= 0)
It was not at all clear from the changelog and it was diffi
The cinfo struct has a hole after the last struct member so we need to
zero it out. Otherwise we don't disclose some uninitialized stack data.
Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com>
diff --git a/drivers/staging/rdma/hfi1/file_ops.c
b/drivers/staging/rdma/hfi1/file_ops.c
mutex_trylock() returns zero on failure, not EBUSY.
Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com>
diff --git a/drivers/staging/rdma/hfi1/chip.c b/drivers/staging/rdma/hfi1/chip.c
index 654eafe..aa58e59 100644
--- a/drivers/staging/rdma/hfi1/chip.c
+++ b/drivers/staging/rdma/hfi1/
warning is from a too many false positives to publish Smatch check.
2290 goto bail;
2291 strcat(buf, "\n");
2292 ret = strlen(buf);
2293
2294 bail:
2295 return ret;
2296 }
regards,
dan carpenter
--
To unsubscribe from this list:
The cinfo struct has a hole after the last struct member so we need to
zero it out. Otherwise we disclose some uninitialized stack data.
Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com>
---
v2: typo in changelog
diff --git a/drivers/staging/rdma/hfi1/file_ops.c
b/drivers/stagin
On Wed, Sep 16, 2015 at 08:25:00AM +0200, Julia Lawall wrote:
> On Wed, 16 Sep 2015, Dan Carpenter wrote:
>
> > The cinfo struct has a hole after the last struct member so we need to
> > zero it out. Otherwise we don't disclose some uninitialized stack data.
>
> I
__get_txreq() returns an ERR_PTR() but this checks for NULL so it would
oops on failure.
Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com>
diff --git a/drivers/staging/rdma/hfi1/verbs.c
b/drivers/staging/rdma/hfi1/verbs.c
index 53ac214..41bb59e 100644
--- a/drivers/staging/rdm
7, 16, 14, val);
1353 } else
1354 AHG_HEADER_SET(req->ahg, diff, 7, 16, 12, val);
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
ould probably be a u32 instead of a u8.
regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
We are shifting by the _MASK macros instead of the _SHIFT ones.
Signed-off-by: Dan Carpenter <dan.carpen...@oracle.com>
diff --git a/drivers/staging/rdma/hfi1/sdma.c b/drivers/staging/rdma/hfi1/sdma.c
index a8c903c..3a457d2 100644
--- a/drivers/staging/rdma/hfi1/sdma.c
+++ b/drivers/stagin
copy_to/from_user() returns the number of bytes which we were not able
to copy. It doesn't return an error code.
Also a couple places had a printk() on error and I removed that because
people can take advantage of it to fill /var/log/messages with spam.
Signed-off-by: Dan Carpenter <dan.car
Smatch says that, based on the indenting, we should probably add curly
braces here.
Fixes: 230145ff8124 ('IB/core: Add RoCE GID table management')
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c
index 258b3f7
This is a zero offset array. The current code could try to free random
memory and crash. Also it leaks the first element.
Fixes: 230145ff8124 ('IB/core: Add RoCE GID table management')
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/core/cache.c b/drivers
;
2441 }
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
}
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
We return success if mlx5e_alloc_sq_db() fails but we should return an
error code.
Fixes: f62b8bb8f2d3 ('net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet
functionality')
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
the static
checker warning.
The static checker warning is to catch place which do:
if (!ptr)
return ERR_PTR(ptr);
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/usnic/usnic_uiom.c
b/drivers/infiniband/hw/usnic/usnic_uiom.c
index 417de1f
MLX5_SET_TO_ONES(fte_match_param, g[0].match_criteria,
731 outer_headers.ip_protocol);
732
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info
ret is always zero here after commit c4bce8032ef4 ('IB/ipath: Add new
chip-specific functions to older chips, consistent init').
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
---
I just happened to spot this dead code when I was reviewing a different
static checker warning
status;
1428 status = ocrdma_mbx_modify_qp(dev, qp, attr, attr_mask);
1429
1430 return status;
1431 }
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info
This line was indented two tabs too far so it looks weird.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/nes/nes_nic.c
b/drivers/infiniband/hw/nes/nes_nic.c
index 70acda9..1f74ae2 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers
We accidentally deleted a semi-colon here and changed this do-nothing
loop into a do-something loop.
Fixes: ff93905fb92d ('IB/qib: Fix checkpatch warnings')
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/qib/qib_wc_x86_64.c
b/drivers/infiniband/hw/qib
The -sgid_tbl[] array has OCRDMA_MAX_SGID number of elements so this
test is off by one. -sgid_tbl is allocated in ocrdma_alloc_resources().
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_verbs.c
b/drivers/infiniband/hw/ocrdma
The current code returns success when kmalloc() fails. It should return
an error code, -ENOMEM.
Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
---
v2: re-write changelog
diff --git a/drivers/infiniband/hw/mlx5
We should return -ENOMEM on allocation failure instead of success.
Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/mlx5/main.c
b/drivers/infiniband/hw/mlx5/main.c
index 8a87404
Ah. Thanks for the explanation. This was on x86.
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
);
222 return;
223 }
224
225 n = (addr ~PAGE_MASK) MLX5_ADAPTER_PAGE_SHIFT;
Maybe n = addr MLX5_ADAPTER_PAGE_SHIFT; was intended? (Totally
random guess).
226 fwp-free_count++;
227 set_bit(n, fwp-bitmask);
regards,
dan
3328 ret = -ENOMEM;
3329 ib_srp_transport_template =
3330 srp_attach_transport(ib_srp_transport_functions);
3331 if (!ib_srp_transport_template)
3332 goto destroy_wq;
regards,
dan carpenter
--
To unsubscribe from this list
This is a static checker fix. The static checker says that q_size comes
from the user and can be any 32 bit value. The call tree is:
-- ib_uverbs_create_cq()
-- c2_create_cq()
-- c2_init_cq()
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers
);
^^^
And another one here in qib_fs.c.
463 } else {
464 spin_unlock(tmp-d_lock);
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http
dereference it inside destroy_qp_user() unconditionally.
980 else if (qp-create_type == MLX5_QP_KERNEL)
981 destroy_qp_kernel(dev, qp);
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord
691 qp = *caller_qp;
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
The cpl_abort_req struct has several reserved members which need to be
cleared to avoid disclosing kernel information. I have added a memset()
so now it matches the cxgb4 version of this function.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/cxgb3
;
+ }
}
- if (status)
- pr_err(%s() err. status=%d\n, __func__, status);
return status;
return 0;
}
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More
those things as security vulnerabilities with CVEs and everything.
When is it likely to get fixed?
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org
We recently added some locking to this function and there was an error
path which missed the unlock.
Fixes: 9306dcbc96f3 ('RDMA/cxgb4: Lock around accept/reject downcalls')
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw
The code was indented too far and also kernel style says we should have
curly braces.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/mlx4/main.c
b/drivers/infiniband/hw/mlx4/main.c
index 6cb8546..8d9d6b8 100644
--- a/drivers/infiniband/hw/mlx4/main.c
made the buffer 80 characters instead
of 69 and I changed the sprintf() to snprintf().
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/mlx4/main.c
b/drivers/infiniband/hw/mlx4/main.c
index 8d9d6b8..1b6dbe15 100644
--- a/drivers/infiniband/hw/mlx4/main.c
The c4iw_alloc_ucontext_resp struct has a 4 byte hole after the last
member and we should clear it before passing it to the user.
Fixes: 05eb23893c2c ('cxgb4/iw_cxgb4: Doorbell Drop Avoidance Bug Fixes')
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw
On Tue, Feb 18, 2014 at 04:13:28PM +0200, Moni Shoua wrote:
On 2/17/2014 1:52 PM, Dan Carpenter wrote:
Hello Moni Shoua,
This is a semi-automatic email about new static checker warnings.
The patch ad4885d279b6: IB/mlx4: Build the port IBoE GID table
properly under bonding from Feb 5, 2014
);
1751 }
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
We already know pusable is non-zero, no need to check again.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/qib/qib_file_ops.c
b/drivers/infiniband/hw/qib/qib_file_ops.c
index 275f247f9fca..cff8f830492c 100644
--- a/drivers/infiniband/hw/qib
On Mon, Feb 10, 2014 at 01:48:58PM +0530, Devesh Sharma wrote:
Use correct value for obtaining traffic class from device
response for Query QP request.
Signed-off-by: Devesh Sharma devesh.sha...@emulex.com
Reported-by: Dan Carpenter dan.carpen...@oracle.com
regards,
dan carpenter
a Tolstoy novel, I still
have no idea what they mean. I know that the T in
OCRDMA_QP_PARAMS_TCLASS_SHIFT stands for traffic but when it comes to
the SQ_PSN then I have no idea about that.
1421
1422 qp_attr-ah_attr.ah_flags = IB_AH_GRH;
regards,
dan carpenter
--
To unsubscribe from
We know that reset_tpt_entry is false on this side of the if else
statement so there is no need to check again.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/cxgb3/cxio_hal.c
b/drivers/infiniband/hw/cxgb3/cxio_hal.c
index c3f5aca4ef00..de1c61b417d6
We don't need to test ret twice and also the white space is messed up.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c
b/drivers/infiniband/hw/nes/nes_verbs.c
index 8308e3634767..2db2b58f70d9 100644
--- a/drivers/infiniband/hw/nes
This is called from qp_grp_and_vf_bind() and we are holding the
vf-lock so the allocation can't sleep.
Fixes: e3cf00d0a87f ('IB/usnic: Add Cisco VIC low-level hardware driver')
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/usnic/usnic_uiom.c
b/drivers
endian systems.
641 if (err)
642 return err;
643 break;
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http
handling here could be much simpler. kzalloc()
for example, has very extensive error messages.
pd-domain = domain = iommu_domain_alloc(pci_bus_type);
if (!domain) {
kfree(pd);
return -ENOMEM;
}
regards,
dan carpenter
--
To unsubscribe
.
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
);
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
goto out;
564 }
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
of memory\n);
470 return NULL;
471 }
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
security bug).
115 if (err) {
116 usnic_err(Failed to copy udata for %s,
us_ibdev-ib_dev.name);
117 return err;
118 }
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body
page_size is declared as u64 but the (1 page_shift) shift will wrap
at 32 bits.
Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/mlx5/mem.c b/drivers/infiniband/hw/mlx5/mem.c
index
On Sun, Nov 03, 2013 at 09:03:27AM +0200, Eli Cohen wrote:
On Fri, Nov 01, 2013 at 01:20:44PM +0300, Dan Carpenter wrote:
The warning was unreachable. In the original code, it would print the
line number and the function but I have added an error message.
Signed-off-by: Dan Carpenter
The warning was unreachable. In the original code, it would print the
line number and the function but I have added an error message.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
---
I haven't tested this, hopefully the warning is not annoying.
diff --git a/drivers/net/ethernet
. With Smatch, I've
deliberately set it to have more false positives than GCC. It's always
a tradeoff.
I wish there were a way to carry a list of false positives in the smatch
git tree and filter them out automatically...
regards,
dan carpenter
--
To unsubscribe from this list: send the line
What ever happened with this?
regards,
dan carpenter
On Tue, Sep 03, 2013 at 02:14:36PM +0300, Dan Carpenter wrote:
Hello Vu Pham,
This is a semi-automatic email about new static checker warnings.
The patch 12050ce23475: iser-target: introduce fast memory
registration mode (FRWR) from
OCRDMA_WQE_OPCODE_SHIFT);
1990 hdr-cw |= ((wqe_size / OCRDMA_WQE_STRIDE)
OCRDMA_WQE_SIZE_SHIFT);
1991
regards,
dan carpenter
--
To unsubscribe from this list: send the line unsubscribe linux-rdma in
the body of a message to majord...@vger.kernel.org
More majordomo info at http
These sizes should be unsigned so we don't allow negative values and
have underflow bugs. These can come from the user so there may be
security implications, but I have not tested this.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers
There is a four byte hole at the end of the uresp struct after the
-qid_mask member.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/cxgb4/cq.c b/drivers/infiniband/hw/cxgb4/cq.c
index 88de3aa..e436ead 100644
--- a/drivers/infiniband/hw/cxgb4/cq.c
+++ b
() so it can't
wrap here.
Signed-off-by: Dan Carpenter dan.carpen...@oracle.com
diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
index 4ed8235..db39146 100644
--- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c
+++ b/drivers/infiniband/hw/ocrdma
1 - 100 of 157 matches
Mail list logo