summaryrefslogtreecommitdiffstats
path: root/fs/9p/xattr.h
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2015-10-30 13:49:17 +0100
committerDavid S. Miller <davem@davemloft.net>2015-11-02 15:28:56 -0500
commitd0cb48cd19ce1e249cd350aa67fbf63560292266 (patch)
treeea4d18959cfd57ddb405f3b3fa4ee804a8024cd7 /fs/9p/xattr.h
parent322cf7e3a4e89236ae386cb5668ae0d787d21136 (diff)
downloadlinux-d0cb48cd19ce1e249cd350aa67fbf63560292266.tar.bz2
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>
Diffstat (limited to 'fs/9p/xattr.h')
0 files changed, 0 insertions, 0 deletions