net: remove ifalias on empty given alias
authorOliver Hartkopp <oliver@hartkopp.net>
Wed, 24 Sep 2008 04:23:19 +0000 (21:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Sep 2008 04:23:19 +0000 (21:23 -0700)
commit96ca4a2cc1454cf633a1e0796b7ef39d937b87ec
tree9031c5040ab0dadb3f2c5eb39ec9a4ffd1b53c2d
parentd87798450a7635ab1bcc80271a13ce4a53b016a9
net: remove ifalias on empty given alias

This patch removes the potentially allocated ifalias when the (new) given alias is empty.

E.g. when setting

echo "" > /sys/class/net/eth0/ifalias

Signed-off-by: Oliver Hartkopp <oliver@hartkopp.net>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c