staging: nvec: potential NULL dereference on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Nov 2013 11:25:32 +0000 (14:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2013 17:14:29 +0000 (09:14 -0800)
commit6330f9cf347849de74899e5fac00bfecd84a6b43
tree876904b000ae9519f95c9fb449e4b290c80d1846
parentcb4855b49deb1acce27706ad9509d63c4fe8e988
staging: nvec: potential NULL dereference on error path

We assume nvec->rx can be NULL earlier so I have added a check here as
well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/nvec/nvec.c