projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
irda: precedence bug in irlmp_seq_hb_idx()
[firefly-linux-kernel-4.4.55.git]
/
net
/
irda
/
irlmp.c
diff --git
a/net/irda/irlmp.c
b/net/irda/irlmp.c
index a26c401ef4a4431b2957d5b46c05c0c2a35c90bd..43964594aa12d9864c00a3b778d77060084e6a14 100644
(file)
--- a/
net/irda/irlmp.c
+++ b/
net/irda/irlmp.c
@@
-1839,7
+1839,7
@@
static void *irlmp_seq_hb_idx(struct irlmp_iter_state *iter, loff_t *off)
for (element = hashbin_get_first(iter->hashbin);
element != NULL;
element = hashbin_get_next(iter->hashbin)) {
- if (!off ||
*off
-- == 0) {
+ if (!off ||
(*off)
-- == 0) {
/* NB: hashbin left locked */
return element;
}