OSDN Git Service

9p: potential NULL dereference
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Sep 2018 10:39:34 +0000 (13:39 +0300)
committerDominique Martinet <dominique.martinet@cea.fr>
Wed, 10 Oct 2018 00:13:20 +0000 (09:13 +0900)
commit72ea0321088df2c41eca8cc6160c24bcceb56ac7
treefb8a445b0bf4ff97635282e4edc2c799fbc60e3a
parentb4dc44b3cac9e8327e0655f530ed0c46f2e6214c
9p: potential NULL dereference

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: 996d5b4db4b1 ("9p: Use a slab for allocating requests")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
net/9p/client.c