]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-mmc: place a check for sscanf
authorSumit Pundir <pundirsumit11@gmail.com>
Fri, 10 Aug 2018 12:31:40 +0000 (18:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Aug 2018 17:31:59 +0000 (19:31 +0200)
commitd8b9d4c54c6e5a9fe1966c681fda6fbe8aa78caa
tree4ff78b78b954fcd9f327877a2af64adb57b2790e
parentbbc06b984a694a8b1780da65530f5c5799feeda2
staging: mt7621-mmc: place a check for sscanf

Placed a check for the return value of sscanf. -EINVAL is returned if
the value is anything other than expected. Reported by checkpatch.pl

Signed-off-by: Sumit Pundir <pundirsumit11@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/dbg.c