summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorStefan Lengfeld <s.lengfeld@phytec.de>2016-11-07 16:10:56 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-11-08 08:55:48 +0100
commit7649dc9ec971d0988c9bf1e9d9c004fa284d81b5 (patch)
tree617b3a9c772ad04a3a8d0090a5c113a79eceb964 /drivers/net
parente6876cde693ebffd87ae270197e7bf60a94edcaa (diff)
downloadbarebox-7649dc9ec971d0988c9bf1e9d9c004fa284d81b5.tar.gz
barebox-7649dc9ec971d0988c9bf1e9d9c004fa284d81b5.tar.xz
commands: spi: fix chip select validation
The chip selects are numbered 0..(max chip selects - 1). Chip select with number <max chip selects> is invalid. Fix the check for that. Using the out of bound chip select may hang your board. Signed-off-by: Stefan Lengfeld <s.lengfeld@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions