diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-08-04 15:18:20 +0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-08-10 14:27:47 +0400 |
commit | 4732cc636075ff1a0219bf933d8c23d1a99f41ed (patch) | |
tree | 9381dc3ab288d617b1e29577e078ba5fde3db894 /drivers/char/hw_random/omap-rng.c | |
parent | d680e2c11eb0ddd21ba438b3a537e2eb093ff86f (diff) | |
download | linux-4732cc636075ff1a0219bf933d8c23d1a99f41ed.tar.xz |
spi/s3c64xx: improve error handling
When a device tree definition os an s3c64xx SPI master is missing
a "controller-data" subnode, the newly added s3c64xx_get_slave_ctrldata
function might use uninitialized memory in place of that node,
which was correctly reported by gcc.
Without this patch, building s3c6400_defconfig results in:
drivers/spi/spi-s3c64xx.c: In function 's3c64xx_get_slave_ctrldata.isra.25':
drivers/spi/spi-s3c64xx.c:841:5: warning: 'data_np' may be used uninitialized in this function [-Wuninitialized]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Cc: Jaswinder Singh <jaswinder.singh@linaro.org>
Cc: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/char/hw_random/omap-rng.c')
0 files changed, 0 insertions, 0 deletions