aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/cxgbit/cxgbit_main.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2018-12-05 13:52:47 +0000
committerMiguel Ojeda <miguel.ojeda.sandonis@gmail.com>2018-12-21 21:27:21 +0100
commit9bc30ab82108e6a34dc63bf956b49edf71b1681a (patch)
tree9f48273fc6e90ce8d11fdf88c2b8500f29ff205b /drivers/target/iscsi/cxgbit/cxgbit_main.c
parentLinux 4.20-rc6 (diff)
downloadlinux-dev-9bc30ab82108e6a34dc63bf956b49edf71b1681a.tar.xz
linux-dev-9bc30ab82108e6a34dc63bf956b49edf71b1681a.zip
auxdisplay: charlcd: fix x/y command parsing
The x/y command parsing has been broken since commit 129957069e6a ("staging: panel: Fixed checkpatch warning about simple_strtoul()"). Commit b34050fadb86 ("auxdisplay: charlcd: Fix and clean up handling of x/y commands") fixed some problems by rewriting the parsing code, but also broke things further by removing the check for a complete command before attempting to parse it. As a result, parsing is terminated at the first x or y character. This reinstates the check for a final semicolon. Whereas the original code use strchr(), this is wasteful seeing as the semicolon is always at the end of the buffer. Thus check this character directly instead. Signed-off-by: Mans Rullgard <mans@mansr.com> Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Diffstat (limited to 'drivers/target/iscsi/cxgbit/cxgbit_main.c')
0 files changed, 0 insertions, 0 deletions