[bug report] qed: Add RoCE ll2 & GSI support

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

 



Hello Ram Amrani,

This is a semi-automatic email about new static checker warnings.

The patch abd49676c707: "qed: Add RoCE ll2 & GSI support" from Oct 1, 
2016, leads to the following Smatch complaint:

drivers/net/ethernet/qlogic/qed/qed_roce.c:2853 qed_roce_ll2_tx()
	 warn: variable dereferenced before check 'cdev' (see line 2846)

drivers/net/ethernet/qlogic/qed/qed_roce.c
  2845	{
  2846		struct qed_hwfn *hwfn = QED_LEADING_HWFN(cdev);
                                                         ^^^^
  2847		struct qed_roce_ll2_info *roce_ll2 = hwfn->ll2;
                                                     ^^^^^^^^^
  2848		enum qed_ll2_roce_flavor_type qed_roce_flavor;
  2849		u8 flags = 0;
  2850		int rc;
  2851		int i;
  2852	
  2853		if (!cdev || !pkt || !params) {
                     ^^^^

This one also.

  2854			DP_ERR(cdev,
  2855			       "roce ll2 tx: failed tx because one of the following is NULL - drv=%p, pkt=%p, params=%p\n",

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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