]> 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)
commit87dda78270451ecb4c7d0ed50a1d397c7ee64f10
tree4ff78b78b954fcd9f327877a2af64adb57b2790e
parent30b0e7068981892078848c3fe4fd62560b466e34
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