projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
152e585
)
bcma: signedness bug in bcma_get_next_core()
author
Dan Carpenter
<error27@gmail.com>
Tue, 23 Aug 2011 19:15:35 +0000
(22:15 +0300)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 24 Aug 2011 18:41:44 +0000
(14:41 -0400)
The u32 would never be less than zero so the error handling would
break. I changed it to s32 to match how bcma_erom_get_mst_port() is
declared.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/scan.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/bcma/scan.c
b/drivers/bcma/scan.c
index 0ea390f9aa9e75e3dfb2d18139eb670eca7f01f5..cad9948576837a53373791179b388d59276c7596 100644
(file)
--- a/
drivers/bcma/scan.c
+++ b/
drivers/bcma/scan.c
@@
-281,7
+281,7
@@
static int bcma_get_next_core(struct bcma_bus *bus, u32 __iomem **eromptr,
/* get & parse master ports */
for (i = 0; i < ports[0]; i++) {
-
u
32 mst_port_d = bcma_erom_get_mst_port(bus, eromptr);
+
s
32 mst_port_d = bcma_erom_get_mst_port(bus, eromptr);
if (mst_port_d < 0)
return -EILSEQ;
}