linux/drivers/net/mlx4
Ingo Molnar b58515be97 mlx4: fix error path in drivers/net/mlx4/en_rx.c
this warning:

  drivers/net/mlx4/en_rx.c: In function ‘mlx4_en_activate_rx_rings’:
  drivers/net/mlx4/en_rx.c:412: warning: ‘err’ may be used uninitialized in this function

Triggers because 'err' is uninitialized in the following input
conditions: priv->rx_ring_num is zero and mlx4_en_fill_rx_buffers()
fails.

But even if ->rx_ring_num is nonzero, 'err' will be zero if
mlx4_en_fill_rx_buffers() fails and mlx4_en_activate_rx_rings() returns
success - incorrectly.

So it's best to keep the error code uptodate on mlx4_en_fill_rx_buffers()
calls as well.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-11-25 16:53:32 -08:00
..
alloc.c
catas.c
cmd.c
cq.c
en_cq.c
en_main.c
en_netdev.c mlx4: convert to net_device_ops 2008-11-21 17:30:58 -08:00
en_params.c mlx4_en: Pause parameters per port 2008-11-15 13:52:07 -08:00
en_port.c
en_port.h
en_resources.c
en_rx.c mlx4: fix error path in drivers/net/mlx4/en_rx.c 2008-11-25 16:53:32 -08:00
en_tx.c
eq.c
fw.c
fw.h
icm.c
icm.h
intf.c
main.c
Makefile
mcg.c
mlx4_en.h Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2008-11-18 23:38:23 -08:00
mlx4.h
mr.c
pd.c
port.c
profile.c
qp.c
reset.c
srq.c