All of lore.kernel.org
 help / color / mirror / Atom feed
* [bug report] i40e: Fix kernel panic on enable/disable LLDP
@ 2016-09-30 10:41 ` Dan Carpenter
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2016-09-30 10:41 UTC (permalink / raw)
  To: kernel-janitors

Hello Dave Ertman,

The patch a036244c0686: "i40e: Fix kernel panic on enable/disable
LLDP" from Aug 29, 2016, leads to the following static checker
warning:

	drivers/net/ethernet/intel/i40e/i40e_main.c:10958 i40e_probe()
	warn: odd binop '0x20000000 & 0x100000'

drivers/net/ethernet/intel/i40e/i40e_main.c
 10952          pci_set_drvdata(pdev, pf);
 10953          pci_save_state(pdev);
 10954  #ifdef CONFIG_I40E_DCB
 10955          err = i40e_init_pf_dcb(pf);
 10956          if (err) {
 10957                  dev_info(&pdev->dev, "DCB init failed %d, disabled\n", err);
 10958                  pf->flags &= ~(I40E_FLAG_DCB_CAPABLE & I40E_FLAG_DCB_ENABLED);

Should this be an | instead of an &?  The current code is a no-op.

 10959                  /* Continue without DCB enabled */
 10960          }
 10961  #endif /* CONFIG_I40E_DCB */

regards,
dan carpenter

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

* [Intel-wired-lan] [bug report] i40e: Fix kernel panic on enable/disable LLDP
@ 2016-09-30 10:41 ` Dan Carpenter
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2016-09-30 10:41 UTC (permalink / raw)
  To: intel-wired-lan

Hello Dave Ertman,

The patch a036244c0686: "i40e: Fix kernel panic on enable/disable
LLDP" from Aug 29, 2016, leads to the following static checker
warning:

	drivers/net/ethernet/intel/i40e/i40e_main.c:10958 i40e_probe()
	warn: odd binop '0x20000000 & 0x100000'

drivers/net/ethernet/intel/i40e/i40e_main.c
 10952          pci_set_drvdata(pdev, pf);
 10953          pci_save_state(pdev);
 10954  #ifdef CONFIG_I40E_DCB
 10955          err = i40e_init_pf_dcb(pf);
 10956          if (err) {
 10957                  dev_info(&pdev->dev, "DCB init failed %d, disabled\n", err);
 10958                  pf->flags &= ~(I40E_FLAG_DCB_CAPABLE & I40E_FLAG_DCB_ENABLED);

Should this be an | instead of an &?  The current code is a no-op.

 10959                  /* Continue without DCB enabled */
 10960          }
 10961  #endif /* CONFIG_I40E_DCB */

regards,
dan carpenter

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

* RE: [bug report] i40e: Fix kernel panic on enable/disable LLDP
  2016-09-30 10:41 ` [Intel-wired-lan] " Dan Carpenter
@ 2016-09-30 16:43   ` Ertman, David M
  -1 siblings, 0 replies; 4+ messages in thread
From: Ertman, David M @ 2016-09-30 16:43 UTC (permalink / raw)
  To: kernel-janitors

Dan,

Nice catch!  I have submitted a patch to fix this to intel-wired-lan@lists.osuosl.org and credited you with a Reported-by.  Thanks for letting me know!  

Thanks,
Dave Ertman

-----Original Message-----
From: Dan Carpenter [mailto:dan.carpenter@oracle.com] 
Sent: Friday, September 30, 2016 3:41 AM
To: Ertman, David M <david.m.ertman@intel.com>
Cc: intel-wired-lan@lists.osuosl.org; kernel-janitors@vger.kernel.org
Subject: [bug report] i40e: Fix kernel panic on enable/disable LLDP

Hello Dave Ertman,

The patch a036244c0686: "i40e: Fix kernel panic on enable/disable LLDP" from Aug 29, 2016, leads to the following static checker
warning:

	drivers/net/ethernet/intel/i40e/i40e_main.c:10958 i40e_probe()
	warn: odd binop '0x20000000 & 0x100000'

drivers/net/ethernet/intel/i40e/i40e_main.c
 10952          pci_set_drvdata(pdev, pf);
 10953          pci_save_state(pdev);
 10954  #ifdef CONFIG_I40E_DCB
 10955          err = i40e_init_pf_dcb(pf);
 10956          if (err) {
 10957                  dev_info(&pdev->dev, "DCB init failed %d, disabled\n", err);
 10958                  pf->flags &= ~(I40E_FLAG_DCB_CAPABLE & I40E_FLAG_DCB_ENABLED);

Should this be an | instead of an &?  The current code is a no-op.

 10959                  /* Continue without DCB enabled */
 10960          }
 10961  #endif /* CONFIG_I40E_DCB */

regards,
dan carpenter

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

* [Intel-wired-lan] [bug report] i40e: Fix kernel panic on enable/disable LLDP
@ 2016-09-30 16:43   ` Ertman, David M
  0 siblings, 0 replies; 4+ messages in thread
From: Ertman, David M @ 2016-09-30 16:43 UTC (permalink / raw)
  To: intel-wired-lan

Dan,

Nice catch!  I have submitted a patch to fix this to intel-wired-lan at lists.osuosl.org and credited you with a Reported-by.  Thanks for letting me know!  

Thanks,
Dave Ertman

-----Original Message-----
From: Dan Carpenter [mailto:dan.carpenter at oracle.com] 
Sent: Friday, September 30, 2016 3:41 AM
To: Ertman, David M <david.m.ertman@intel.com>
Cc: intel-wired-lan at lists.osuosl.org; kernel-janitors at vger.kernel.org
Subject: [bug report] i40e: Fix kernel panic on enable/disable LLDP

Hello Dave Ertman,

The patch a036244c0686: "i40e: Fix kernel panic on enable/disable LLDP" from Aug 29, 2016, leads to the following static checker
warning:

	drivers/net/ethernet/intel/i40e/i40e_main.c:10958 i40e_probe()
	warn: odd binop '0x20000000 & 0x100000'

drivers/net/ethernet/intel/i40e/i40e_main.c
 10952          pci_set_drvdata(pdev, pf);
 10953          pci_save_state(pdev);
 10954  #ifdef CONFIG_I40E_DCB
 10955          err = i40e_init_pf_dcb(pf);
 10956          if (err) {
 10957                  dev_info(&pdev->dev, "DCB init failed %d, disabled\n", err);
 10958                  pf->flags &= ~(I40E_FLAG_DCB_CAPABLE & I40E_FLAG_DCB_ENABLED);

Should this be an | instead of an &?  The current code is a no-op.

 10959                  /* Continue without DCB enabled */
 10960          }
 10961  #endif /* CONFIG_I40E_DCB */

regards,
dan carpenter

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

end of thread, other threads:[~2016-09-30 16:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-30 10:41 [bug report] i40e: Fix kernel panic on enable/disable LLDP Dan Carpenter
2016-09-30 10:41 ` [Intel-wired-lan] " Dan Carpenter
2016-09-30 16:43 ` Ertman, David M
2016-09-30 16:43   ` [Intel-wired-lan] " Ertman, David M

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.