9p: move dereference after NULL check
authorDan Carpenter <error27@gmail.com>
Fri, 26 Aug 2011 16:55:59 +0000 (19:55 +0300)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 24 Oct 2011 16:13:11 +0000 (11:13 -0500)
commit5635fd0ccf4ce90a9ecf8fa48f5f031f5f73e6f5
treea6a7320929b5e9bc08c5bf9b9f1623c9bc576016
parent464f5ecf00bb4513ba257520678f5168452f67ba
9p: move dereference after NULL check

We dereferenced "req->tc" and "req->rc" before checking for NULL.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
net/9p/client.c