]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: smh: Check return value of strndup
authorSean Anderson <sean.anderson@seco.com>
Fri, 22 Apr 2022 18:50:23 +0000 (14:50 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 5 May 2022 19:06:02 +0000 (15:06 -0400)
commitbfae2744dd136198a97b480bc0cc1814663fe33b
tree4db0bd4c46aecceff6c32be3017cefaa33372df2
parent30705cd89271ea05ff6c65552af3dc4f0680a03c
serial: smh: Check return value of strndup

strndup can fail. Check for it.

Fixes: 4855b39be ("serial: smh: Implement puts for DM")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
drivers/serial/serial_semihosting.c