Skip to content

Commit dfb98ae

Browse files
committed
dfs:fix uninitialized 9pfs protocol lookup
1 parent ed74810 commit dfb98ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/dfs/dfs_v1/filesystems/9pfs/dfs_9pfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ static int dfs_9pfs_mount(struct dfs_filesystem *fs,
923923
unsigned long rwflag, const void *data)
924924
{
925925
rt_ubase_t level;
926-
struct p9_protocol *p9p, *p9p_tmp;
926+
struct p9_protocol *p9p = RT_NULL, *p9p_tmp;
927927
struct p9_connection *conn = RT_NULL;
928928

929929
if (!data)

0 commit comments

Comments
 (0)