diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-03-09 07:11:10 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-10 17:06:45 +0100 |
commit | 2271cf124a2763b7252887814a7fc8a844767e8f (patch) | |
tree | 2aa554da7a1af8000ac7c5c594123f1b6de0b5b7 /drivers/hid/hid-pl.c | |
parent | spi: coldfire-qspi: Enable clock before calling spi_master_resume (diff) | |
download | linux-2271cf124a2763b7252887814a7fc8a844767e8f.tar.xz linux-2271cf124a2763b7252887814a7fc8a844767e8f.zip |
spi: coldfire-qspi: Prevent NULL pointer dereference
If pdata->cs_control is NULL, we will hit NULL pointer dereference in
mcfqspi_cs_select() and mcfqspi_cs_deselect(). Thus add NULL test for
pdata->cs_control in probe().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/hid/hid-pl.c')
0 files changed, 0 insertions, 0 deletions