invalidate_others could return uninit ret

Make sure to initialize ret in case there aren't other mounts.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2017-03-17 09:35:38 -07:00
parent 8c59902b70
commit 2ea5f1d734

View File

@@ -144,7 +144,7 @@ static int invalidate_others(struct super_block *from, int mode,
{
DECLARE_LOCK_INFO(from, from_linf);
struct lock_info *linf;
int ret;
int ret = 0;
down_read(&global_rwsem);