Merge branch 'master' into for-next
Conflicts: drivers/devfreq/exynos4_bus.c Sync with Linus' tree to be able to apply patches that are against newer code (mvneta).
This commit is contained in:
@@ -352,6 +352,8 @@ static struct sk_buff *ipw_packet_received_skb(unsigned char *data,
|
||||
}
|
||||
|
||||
skb = dev_alloc_skb(length + 4);
|
||||
if (skb == NULL)
|
||||
return NULL;
|
||||
skb_reserve(skb, 2);
|
||||
memcpy(skb_put(skb, length), data, length);
|
||||
|
||||
@@ -397,7 +399,8 @@ void ipwireless_network_packet_received(struct ipw_network *network,
|
||||
|
||||
/* Send the data to the ppp_generic module. */
|
||||
skb = ipw_packet_received_skb(data, length);
|
||||
ppp_input(network->ppp_channel, skb);
|
||||
if (skb)
|
||||
ppp_input(network->ppp_channel, skb);
|
||||
} else
|
||||
spin_unlock_irqrestore(&network->lock,
|
||||
flags);
|
||||
|
||||
@@ -566,6 +566,7 @@ void ipwireless_tty_free(struct ipw_tty *tty)
|
||||
ipwireless_disassociate_network_ttys(network,
|
||||
ttyj->channel_idx);
|
||||
tty_unregister_device(ipw_tty_driver, j);
|
||||
tty_port_destroy(&ttyj->port);
|
||||
ttys[j] = NULL;
|
||||
mutex_unlock(&ttyj->ipw_tty_mutex);
|
||||
kfree(ttyj);
|
||||
|
||||
Reference in New Issue
Block a user