datapath: fix dp check in ovs_dp_reset_user_features
authorJiri Pirko <jiri@resnulli.us>
Sun, 16 Feb 2014 01:30:23 +0000 (17:30 -0800)
committerJesse Gross <jesse@nicira.com>
Sun, 16 Feb 2014 07:58:30 +0000 (23:58 -0800)
commitf090a19fffacb067fd296c89462a417f59cd9135
treec17ee72ed09716c7ddfd348fbef787580c5a392f
parentb05dd42a168e0e028748f8de7d4a63b761b2d687
datapath: fix dp check in ovs_dp_reset_user_features

This fixes crash when userspace does "ovs-dpctl add-dp dev" where dev is
existing non-dp netdevice.

Introduced by:
commit 94358dcffbec33cbcfd425e925139fd7e9d6153f
"openvswitch: Drop user features if old user space attempted to create datapath"

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c