public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [bug report] qed: Add RoCE ll2 & GSI support
@ 2016-10-12  6:16 Dan Carpenter
  2016-10-13  6:57 ` Amrani, Ram
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2016-10-12  6:16 UTC (permalink / raw)
  To: kernel-janitors

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-13  6:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12  6:16 [bug report] qed: Add RoCE ll2 & GSI support Dan Carpenter
2016-10-13  6:57 ` Amrani, Ram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox