linux-stable/drivers/net/ethernet/microchip
Javier Martinez Canillas d0cb48cd19 net: encx24j600: Fix SPI id table definition
A driver's SPI id table is expected to be an array of struct spi_device_id
that ends with a zero-initialized sentinel entry. But this driver defines
the table as a single struct spi_device_id and sets .id_table to a pointer
to this struct.

But spi_match_id() has a loop that iterates while the struct spi_device_id
.name[0] is not NULL, so not having a sentinel can cause a NULL pointer
deference error.

This patch defines the SPI id table correctly as all other SPI drivers do.

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-11-02 15:28:56 -05:00
..
enc28j60.c net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
enc28j60_hw.h
encx24j600-regmap.c net: Microchip encx24j600 driver 2015-10-08 04:49:55 -07:00
encx24j600.c net: encx24j600: Fix SPI id table definition 2015-11-02 15:28:56 -05:00
encx24j600_hw.h net: Microchip encx24j600 driver 2015-10-08 04:49:55 -07:00
Kconfig net: encx24j600: Fix typos in Kconfig 2015-10-11 05:26:10 -07:00
Makefile net: Microchip encx24j600 driver 2015-10-08 04:49:55 -07:00