dlm: fix uninitialized variable for search_rsb_list callers
[pandora-kernel.git] / fs / dlm / lock.c
index 7ba9586..724ddac 100644 (file)
@@ -363,6 +363,7 @@ static int search_rsb_list(struct list_head *head, char *name, int len,
                if (len == r->res_length && !memcmp(name, r->res_name, len))
                        goto found;
        }
+       *r_ret = NULL;
        return -EBADR;
 
  found: