All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: [E1000-devel] [patch v2] i40e: potential array underflow in i40e_vc_process_vf_msg()
@ 2014-01-11 22:19 Brown, Aaron F
  2014-01-13  7:54 ` Dan Carpenter
  2014-01-20 23:59 ` Brown, Aaron F
  0 siblings, 2 replies; 3+ messages in thread
From: Brown, Aaron F @ 2014-01-11 22:19 UTC (permalink / raw)
  To: kernel-janitors

> From: Dan Carpenter [mailto:dan.carpenter@oracle.com]
> Sent: Saturday, January 11, 2014 1:59 AM
> To: Kirsher, Jeffrey T
> Cc: kernel-janitors@vger.kernel.org; e1000-devel@lists.sourceforge.net;
> Allan, Bruce W; Brandeburg, Jesse; Wei Yongjun; Ronciak, John
> Subject: [E1000-devel] [patch v2] i40e: potential array underflow in
> i40e_vc_process_vf_msg()
> 
> If "vf_id" is smaller than hw->func_caps.vf_base_id then it leads to an
> array underflow of the pf->vf[] array.  This is unlikely to happen unless
> the hardware is bad, but it's a small change and it silences a static
> checker warning.
> 
> Fixes: 7efa84b7abc1 ('i40e: support VFs on PFs other than 0')
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> ---
> v2: rebased.  commit message updated.
> 

Thanks Dan, I have applied it to Jeff's tree.  It still did not apply cleanly but I went ahead and spun a new patch with the change to get it into the queue.  Not sure what was going on, only visible difference I could see is the original tree seemed to contain:
---------------------------------------------------------
			   u32 v_retval, u8 *msg, u16 msglen)
{
---------------------------------------------------------
While the patch was looking for:
------------------------------------------------------------
			   u32 v_retval, u8 *msg, u16 msglen)  {
------------------------------------------------------------


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

end of thread, other threads:[~2014-01-20 23:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-11 22:19 [E1000-devel] [patch v2] i40e: potential array underflow in i40e_vc_process_vf_msg() Brown, Aaron F
2014-01-13  7:54 ` Dan Carpenter
2014-01-20 23:59 ` Brown, Aaron F

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.