[PATCH] nandtest: fix --reads argument

Ezequiel García ezequiel at vanguardiasur.com.ar
Thu Aug 21 12:14:29 PDT 2014


On 14 Aug 01:29 PM, Guido Martínez wrote:
> The --reads option specifies the argument as optional, but doesn't check
> for a null optarg, which means that nandtest segfaults when run as
> "nandtest --reads".
> 
> Fix this by making the argument required, and changing the help text to
> not specify it as optional. Argument -r already specifies the argument
> as required, so we fix this inconsistency too.
> 
> Signed-off-by: Guido Martínez <guido at vanguardiasur.com.ar>

Nice catch!

Acked-by: Ezequiel Garcia <ezequiel at vanguardiasur.com.ar>
-- 
Ezequiel Garcia, VanguardiaSur
www.vanguardiasur.com.ar



More information about the linux-mtd mailing list