cmd: spi: check return value of strdup
authorPeng Fan <van.freenix@gmail.com>
Sun, 20 Mar 2016 13:21:36 +0000 (21:21 +0800)
committerTom Rini <trini@konsulko.com>
Sun, 27 Mar 2016 13:12:55 +0000 (09:12 -0400)
commit9caeb26c5446fbf835c88c0bfc470d66aaad82c6
treef8cfc39f4e037db1147ad018a4ef933024ef9164
parent3917c26909e4021c73073672865ec456eb51d640
cmd: spi: check return value of strdup

Check return value of strdup.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Heiko Schocher <hs@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefan Roese <sr@denx.de>
Cc: Tom Rini <trini@konsulko.com>
cmd/spi.c