* [PATCH] fs_pin: Initialize done to 0 avoiding strange value
@ 2015-04-28 16:10 Kinglong Mee
0 siblings, 0 replies; only message in thread
From: Kinglong Mee @ 2015-04-28 16:10 UTC (permalink / raw)
To: Al Viro; +Cc: linux-fsdevel, kinglongmee
Without initialized, fs_pin in stack space may contains strange values.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
---
include/linux/fs_pin.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/fs_pin.h b/include/linux/fs_pin.h
index 3886b3b..18fad53 100644
--- a/include/linux/fs_pin.h
+++ b/include/linux/fs_pin.h
@@ -16,6 +16,7 @@ static inline void init_fs_pin(struct fs_pin *p, void (*kill)(struct fs_pin *))
INIT_HLIST_NODE(&p->s_list);
INIT_HLIST_NODE(&p->m_list);
p->kill = kill;
+ p->done = 0;
}
void pin_remove(struct fs_pin *);
--
2.3.6
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-04-28 16:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-28 16:10 [PATCH] fs_pin: Initialize done to 0 avoiding strange value Kinglong Mee
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.