fix removal of unknown device
authorNathan Hintz <nlhintz@hotmail.com>
Sun, 6 Jan 2013 02:41:45 +0000 (18:41 -0800)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 6 Jan 2013 03:09:24 +0000 (04:09 +0100)
commit16e21f6b33c40895cda27af4bc9f3bd0136d2482
tree39c42058e67284c5dca4c9d7e48b280ef6928e6c
parent4108e7610019d63db6540de760feecf38c8b84dc
fix removal of unknown device

Netifd will crash if an attempt is made to remove a device that is not
known to netifd.  For instance:

  ubus call network.interface.lan remove_device "{ \"name\": \"xxx\" }"

Signed-off-by: Nathan Hintz <nlhintz@hotmail.com>
ubus.c