Home
last modified time | relevance | path

Searched hist:d08942591cb8e0776bf2439b00783fa0dcef6529 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dsandbox.cd08942591cb8e0776bf2439b00783fa0dcef6529 Tue Jun 12 06:05:01 UTC 2018 Simon Glass <sjg@chromium.org> UPSTREAM: spi: sandbox: Fix memory leak in sandbox_sf_bind_emul()

Move the strdup() call so that it is only done when we know we will bind
the device.

Change-Id: Ie322cba71f94d829e6c327a921ddc64cfca64e81
Reported-by: Coverity (CID: 131216)
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
(cherry picked from commit fb95283931011aef78d885f2799ad9d7367f4e48)