]> git.dujemihanovic.xyz Git - u-boot.git/commit
nand: Don't dereference NULL manufacturer_desc
authorSean Anderson <seanga2@gmail.com>
Sat, 4 Nov 2023 20:37:40 +0000 (16:37 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 16 Nov 2023 17:43:48 +0000 (12:43 -0500)
commit23c2ebe4d46722e42592808554c7a2f4ad52be2c
treee2ad2c607f670459ae06d977f7c59ef0ea72c9c1
parent23fe0c0747a376e39ce54485735a5df3b322f90b
nand: Don't dereference NULL manufacturer_desc

When no manufacturer is matched, manufacturer_desc is NULL. Avoid
dereferencing it in that case.

Fixes: 4e67c571252 ("mtd,ubi,ubifs: sync with linux v3.15")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
drivers/mtd/nand/raw/nand_base.c