staging: dgrp: fix potential NULL defereference issue
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 29 Oct 2012 05:50:37 +0000 (13:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Oct 2012 22:01:02 +0000 (15:01 -0700)
commit7defac36db43df73feef44e0f6edc298868ae1ac
tree52515765efe90313deb31ab211a92a59f627e8b0
parentf71ccaa4bf8abffbd15012bda7b5da5b6695a879
staging: dgrp: fix potential NULL defereference issue

Fix a coccinelle warning catched by Fengguang's 0-DAY system:
+ drivers/staging/dgrp/dgrp_net_ops.c:1061:11-27: ERROR: nd is NULL but dereferenced.

Put the "done:" label a bit down would solve this issue.

Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgrp/dgrp_net_ops.c