ipv6: move dereference after check in fl_free()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 16 Aug 2012 13:15:02 +0000 (16:15 +0300)
committerEric W. Biederman <ebiederm@xmission.com>
Thu, 16 Aug 2012 23:04:42 +0000 (16:04 -0700)
commit898132ae76d1aeb52301f10e8795c34fbb54e853
treeae2b9b1482fdabf9456bd741bbd21e485cae8dd6
parent0625c883bc4b3eba6f93f268cf67b5664244c0fe
ipv6: move dereference after check in fl_free()

There is a dereference before checking for NULL bug here.  Generally
free() functions should accept NULL pointers.  For example, fl_create()
can pass a NULL pointer to fl_free() on the error path.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
net/ipv6/ip6_flowlabel.c