Steve Sakoman 8d75c8964b cmd_nand: fix crashing bug in nand read/write
Commit 418396e212b59bf907dbccad997ff50f7eb61b16 introduced a
bug that causes nand read and nand write to crash in strcmp
due to a null pointer.

Root cause is that strchr(cmd, '.') returns a null pointer when
the input string does not contain a '.'

The strcmp function does not check for null pointers, resulting
in a crash.

Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Scott Wood <scott@tyr.buserror.net>
2012-06-08 14:57:24 -05:00
..
2012-05-15 17:32:05 -05:00
2011-10-22 01:22:21 +02:00
2012-03-26 11:00:31 +02:00
2012-03-06 21:09:26 +01:00
2012-03-27 22:05:28 +02:00
2012-05-20 08:32:32 +02:00
2011-10-22 01:13:35 +02:00
2011-12-07 08:41:22 +01:00
2011-10-22 01:13:35 +02:00
2011-12-05 22:48:10 +01:00
2011-10-26 21:33:42 +02:00
2012-05-20 08:32:32 +02:00
2012-05-20 08:32:32 +02:00
2012-05-20 08:32:32 +02:00