···744744 size_t fifo_occupancy = 0;745745746746 /* Wakeup timeout */747747- dev_err(&cfhsi->ndev->dev, "%s: Timeout.\n",747747+ dev_dbg(&cfhsi->ndev->dev, "%s: Timeout.\n",748748 __func__);749749750750 /* Check FIFO to check if modem has sent something. */751751 WARN_ON(cfhsi->dev->cfhsi_fifo_occupancy(cfhsi->dev,752752 &fifo_occupancy));753753754754- dev_err(&cfhsi->ndev->dev, "%s: Bytes in FIFO: %u.\n",754754+ dev_dbg(&cfhsi->ndev->dev, "%s: Bytes in FIFO: %u.\n",755755 __func__, (unsigned) fifo_occupancy);756756757757 /* Check if we misssed the interrupt. */···1210121012111211static void cfhsi_shutdown(struct cfhsi *cfhsi)12121212{12131213- u8 *tx_buf, *rx_buf;12131213+ u8 *tx_buf, *rx_buf, *flip_buf;1214121412151215 /* Stop TXing */12161216 netif_tx_stop_all_queues(cfhsi->ndev);···12341234 /* Store bufferes: will be freed later. */12351235 tx_buf = cfhsi->tx_buf;12361236 rx_buf = cfhsi->rx_buf;12371237-12371237+ flip_buf = cfhsi->rx_flip_buf;12381238 /* Flush transmit queues. */12391239 cfhsi_abort_tx(cfhsi);12401240···12471247 /* Free buffers. */12481248 kfree(tx_buf);12491249 kfree(rx_buf);12501250+ kfree(flip_buf);12501251}1251125212521253int cfhsi_remove(struct platform_device *pdev)
+2-3
drivers/net/virtio_net.c
···626626 /* This can happen with OOM and indirect buffers. */627627 if (unlikely(capacity < 0)) {628628 if (likely(capacity == -ENOMEM)) {629629- if (net_ratelimit()) {629629+ if (net_ratelimit())630630 dev_warn(&dev->dev,631631 "TX queue failure: out of memory\n");632632- } else {632632+ } else {633633 dev->stats.tx_fifo_errors++;634634 if (net_ratelimit())635635 dev_warn(&dev->dev,636636 "Unexpected TX queue failure: %d\n",637637 capacity);638638- }639638 }640639 dev->stats.tx_dropped++;641640 kfree_skb(skb);
···14091409 * register_netdevice_notifier(). The notifier is unlinked into the14101410 * kernel structures and may then be reused. A negative errno code14111411 * is returned on a failure.14121412+ *14131413+ * After unregistering unregister and down device events are synthesized14141414+ * for all devices on the device list to the removed notifier to remove14151415+ * the need for special case cleanup code.14121416 */1413141714141418int unregister_netdevice_notifier(struct notifier_block *nb)14151419{14201420+ struct net_device *dev;14211421+ struct net *net;14161422 int err;1417142314181424 rtnl_lock();14191425 err = raw_notifier_chain_unregister(&netdev_chain, nb);14261426+ if (err)14271427+ goto unlock;14281428+14291429+ for_each_net(net) {14301430+ for_each_netdev(net, dev) {14311431+ if (dev->flags & IFF_UP) {14321432+ nb->notifier_call(nb, NETDEV_GOING_DOWN, dev);14331433+ nb->notifier_call(nb, NETDEV_DOWN, dev);14341434+ }14351435+ nb->notifier_call(nb, NETDEV_UNREGISTER, dev);14361436+ nb->notifier_call(nb, NETDEV_UNREGISTER_BATCH, dev);14371437+ }14381438+ }14391439+unlock:14201440 rtnl_unlock();14211441 return err;14221442}
+1-1
net/key/af_key.c
···3480348034813481 /* Addresses to be used by KM for negotiation, if ext is available */34823482 if (k != NULL && (set_sadb_kmaddress(skb, k) < 0))34833483- return -EINVAL;34833483+ goto err;3484348434853485 /* selector src */34863486 set_sadb_address(skb, sasize_sel, SADB_EXT_ADDRESS_SRC, sel);