run(4): fix allocated memory type and -Wincompatible-pointer-types
compiler warning. PR: 177366 MFC after: 3 days
This commit is contained in:
parent
d38ca3297c
commit
bce0fd800a
@ -2029,7 +2029,14 @@ run_read_eeprom(struct run_softc *sc)
|
|||||||
static struct ieee80211_node *
|
static struct ieee80211_node *
|
||||||
run_node_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN])
|
run_node_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN])
|
||||||
{
|
{
|
||||||
return malloc(sizeof (struct run_node), M_DEVBUF, M_NOWAIT | M_ZERO);
|
struct run_node *rn;
|
||||||
|
|
||||||
|
rn = malloc(sizeof (struct run_node), M_80211_NODE, M_NOWAIT | M_ZERO);
|
||||||
|
|
||||||
|
if (rn == NULL)
|
||||||
|
return (NULL);
|
||||||
|
|
||||||
|
return (&rn->ni);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user