projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc85ce1
)
[ARM] cumana: Fix a long standing bogon
author
Alan Cox
<alan@lxorguk.ukuu.org.uk>
Mon, 23 Mar 2009 10:37:57 +0000
(10:37 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Tue, 24 Mar 2009 22:52:27 +0000
(22:52 +0000)
Should be using strncmp as the data from user space may be unterminated
(Bug #8004)
Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/scsi/arm/cumana_2.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/arm/cumana_2.c
b/drivers/scsi/arm/cumana_2.c
index 68a64123af8f9fd28379a640d7a00b4f6ddcdd39..ed502b7412d69f8bc8adbc3d62ca99678cb83eb0 100644
(file)
--- a/
drivers/scsi/arm/cumana_2.c
+++ b/
drivers/scsi/arm/cumana_2.c
@@
-318,7
+318,7
@@
cumanascsi_2_set_proc_info(struct Scsi_Host *host, char *buffer, int length)
{
int ret = length;
- if (length >= 11 && str
cmp(buffer, "CUMANASCSI2"
) == 0) {
+ if (length >= 11 && str
ncmp(buffer, "CUMANASCSI2", 11
) == 0) {
buffer += 11;
length -= 11;