|
@@ -120,6 +120,7 @@ static int netdev_fetch_bustype ( struct net_device *netdev, void *data,
|
120
|
120
|
[BUS_TYPE_EISA] = "EISA",
|
121
|
121
|
[BUS_TYPE_MCA] = "MCA",
|
122
|
122
|
[BUS_TYPE_ISA] = "ISA",
|
|
123
|
+ [BUS_TYPE_TAP] = "TAP",
|
123
|
124
|
};
|
124
|
125
|
struct device_description *desc = &netdev->dev->desc;
|
125
|
126
|
const char *bustype;
|
|
@@ -127,7 +128,7 @@ static int netdev_fetch_bustype ( struct net_device *netdev, void *data,
|
127
|
128
|
assert ( desc->bus_type < ( sizeof ( bustypes ) /
|
128
|
129
|
sizeof ( bustypes[0] ) ) );
|
129
|
130
|
bustype = bustypes[desc->bus_type];
|
130
|
|
- assert ( bustypes != NULL );
|
|
131
|
+ assert ( bustype != NULL );
|
131
|
132
|
strncpy ( data, bustype, len );
|
132
|
133
|
return strlen ( bustype );
|
133
|
134
|
}
|