projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7210cb7
)
dlm: last element of dlm_local_addr[] never used
author
David Teigland
<teigland@redhat.com>
Wed, 21 Mar 2012 14:18:34 +0000
(09:18 -0500)
committer
David Teigland
<teigland@redhat.com>
Wed, 21 Mar 2012 14:18:34 +0000
(09:18 -0500)
The last element of dlm_local_addr[DLM_MAX_ADDR_COUNT]
was not used because the loop ended at COUNT - 1.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/dlm/lowcomms.c
b/fs/dlm/lowcomms.c
index 0b3109ee42571e258fd4a2ff3ef342e9ddb1658c..ad607996def07eb850fbc0d9f8974f8e33e3d0ac 100644
(file)
--- a/
fs/dlm/lowcomms.c
+++ b/
fs/dlm/lowcomms.c
@@
-1082,7
+1082,7
@@
static void init_local(void)
int i;
dlm_local_count = 0;
- for (i = 0; i < DLM_MAX_ADDR_COUNT
- 1
; i++) {
+ for (i = 0; i < DLM_MAX_ADDR_COUNT; i++) {
if (dlm_our_addr(&sas, i))
break;