Skip to content
Snippets Groups Projects
Commit 29b325f7 authored by Dan Carpenter's avatar Dan Carpenter Committed by 谢秀奇
Browse files

9p: potential NULL dereference

[ Upstream commit 72ea0321 ]

p9_tag_alloc() is supposed to return error pointers, but we accidentally
return a NULL here.  It would cause a NULL dereference in the caller.

Link: http://lkml.kernel.org/m/20180926103934.GA14535@mwanda


Fixes: 996d5b4d ("9p: Use a slab for allocating requests")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent b10945a2
No related branches found
No related tags found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment