]> git.baikalelectronics.ru Git - kernel.git/commit
ptp: clockmatrix: bug fix for idtcm_strverscmp
authorMin Li <min.li.xe@renesas.com>
Wed, 25 Nov 2020 02:58:35 +0000 (21:58 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Nov 2020 01:24:49 +0000 (17:24 -0800)
commit41b8ab3cbc178dbc791b8da805a09d2ec2f7ff2a
tree83bc29b5ac7183aab28c2423a5dbf925d34e008d
parente330efd458bd0ed4f2aef8f25bb006c168292980
ptp: clockmatrix: bug fix for idtcm_strverscmp

Feed kstrtou8 with NULL terminated string.

Changes since v1:
-Use sscanf to get rid of adhoc string parse.
Changes since v2:
-Check if sscanf returns 3.

Fixes: 533e185f31fd ("ptp: ptp_clockmatrix: update to support 4.8.7 firmware")
Signed-off-by: Min Li <min.li.xe@renesas.com>
Link: https://lore.kernel.org/r/1606273115-25792-1-git-send-email-min.li.xe@renesas.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/ptp/ptp_clockmatrix.c