summaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorSteve Sakoman <[email protected]>2012-06-07 10:19:18 -0700
committerScott Wood <[email protected]>2012-06-08 14:57:24 -0500
commit8d75c8964baa76d097edb4aa4b0474600f2998ba (patch)
tree056e850371fcdb988da4d3e33e362c3bfc37de6b /include/linux/string.h
parentfedab338f3459315cb69627fcf46032ec8df1753 (diff)
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 <[email protected]> Signed-off-by: Scott Wood <[email protected]>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions