linux/drivers/staging/et131x
Rashika Kheria 9c7bc37628 Staging: et131x: Fix Smatch Warning of Buffer Overflow
This patch fixes the following Sparse Warning in et131x.c-

drivers/staging/et131x/et131x.c:2957 nic_send_packet() error: buffer overflow 'frags' 17 <= 21
drivers/staging/et131x/et131x.c:2959 nic_send_packet() warn: buffer overflow 'frags' 17 <= 21
drivers/staging/et131x/et131x.c:2961 nic_send_packet() error: buffer overflow 'frags' 17 <= 21

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-10-28 14:22:20 -07:00
..
et131x.c Staging: et131x: Fix Smatch Warning of Buffer Overflow 2013-10-28 14:22:20 -07:00
et131x.h staging: et131x: Use register defines instead of magic numbers 2013-01-07 14:03:32 -08:00
Kconfig staging: fix more ET131X build errors 2011-11-18 15:00:54 -08:00
Makefile staging: et131x: Put all .c files into one big file 2011-10-23 10:03:40 +02:00
Module.symvers staging: et131x: Remove unused rcv_pend_lock spinlock 2013-09-17 07:47:43 -07:00
README staging: et131x: Add some items to the TODO list 2013-09-17 07:47:43 -07:00

This is a driver for the ET1310 network device.

Based on the driver found at https://sourceforge.net/projects/et131x/

Cleaned up immensely by Olaf Hartman and Christoph Hellwig <hch@infradead.org>

Note, the powermanagement options were removed from the vendor provided
driver as they did not build properly at the time.

TODO:
	- Look at reducing the number of spinlocks
	- Simplify code in nic_rx_pkts(), when determining multicast_pkts_rcvd
	- Implement NAPI support
	- In et131x_tx(), don't return NETDEV_TX_BUSY, just drop the packet with kfree_skb().
	- Reduce the number of split lines by careful consideration of variable names etc.
	- Do this in et131x.c:
                struct fbr_lookup *fbr;
                fbr = rx_local->fbr[id];
	  Then replace all the instances of "rx_local->fbr[id]" with fbr.

Please send patches to:
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
	Mark Einon <mark.einon@gmail.com>