diff options
author | Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> | 2015-01-31 17:33:25 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-02-02 21:05:19 +0100 |
commit | ceadfd8de067e37d52e2af6bb60016cb90342fe8 (patch) | |
tree | 1b3a76f797f5425f1ad42eb23f2791f5e785a22f /drivers/mfd/ab3100-otp.c | |
parent | spi: spi-fsl-dspi: Remove spi-bitbang (diff) | |
download | linux-ceadfd8de067e37d52e2af6bb60016cb90342fe8.tar.xz linux-ceadfd8de067e37d52e2af6bb60016cb90342fe8.zip |
spi: fsl-dspi: Remove possible memory leak of 'chip'
Move the check for spi->bits_per_word
before allocation, to avoid memory leak.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/mfd/ab3100-otp.c')
0 files changed, 0 insertions, 0 deletions