commit | ceadfd8de067e37d52e2af6bb60016cb90342fe8 | [log] [tgz] |
---|---|---|
author | Bhuvanchandra DV <bhuvanchandra.dv@toradex.com> | Sat Jan 31 22:03:25 2015 +0530 |
committer | Mark Brown <broonie@kernel.org> | Mon Feb 02 20:05:19 2015 +0000 |
tree | 1b3a76f797f5425f1ad42eb23f2791f5e785a22f | |
parent | 9298bc727385cd625cdda5e877bd3cba8acff668 [diff] |
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>