]> git.baikalelectronics.ru Git - uboot.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)
commit0a74ec876c2dbe4bc405dcd6426b96c87272222e
tree4db0bd4c46aecceff6c32be3017cefaa33372df2
parentb2bbfdd12bdf638e839c11279c987c1894d56f26
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