dm: i2c: Add a missing memory allocaton check
authorSimon Glass <sjg@chromium.org>
Wed, 18 Feb 2015 21:10:28 +0000 (14:10 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 6 Mar 2015 02:13:35 +0000 (19:13 -0700)
commit5c2d23bf9e61e5f1c260fcb6633f70dea1a28e2f
tree8da33c440b7ce3ec1ee91bd7d4f99e138cafe07a
parent694cc87b76b1063a2a7a8bd1809e990df0a469f8
dm: i2c: Add a missing memory allocaton check

This strdup() is missing a check. Add it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-uclass.c