aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/fddi
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2014-07-05 10:14:36 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-08 18:30:11 -0400
commita630be70771ddbe8253f619ac4b9ca4c3277b13b (patch)
tree9492dc4f1224749bac89f72e043bcd5eb706b876 /drivers/net/fddi
parent6329fe5c4e61655bcb8456805d2c485f791b50cc (diff)
defxx: Use netdev_alloc_skb consistently
Switch the two remaining places across the driver that use dev_alloc_skb to netdev_alloc_skb. Another place has already been converted to use __netdev_alloc_skb, no idea why these two have been left behind. Reported-by: Robert Coerver <Robert.Coerver@ll.mit.edu> Tested-by: Robert Coerver <Robert.Coerver@ll.mit.edu> Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/fddi')
-rw-r--r--drivers/net/fddi/defxx.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/fddi/defxx.c b/drivers/net/fddi/defxx.c
index 0b2e80940b95..4c5a2fe67dfb 100644
--- a/drivers/net/fddi/defxx.c
+++ b/drivers/net/fddi/defxx.c
@@ -3045,7 +3045,8 @@ static void dfx_rcv_queue_process(
3045 if (pkt_len > SKBUFF_RX_COPYBREAK) { 3045 if (pkt_len > SKBUFF_RX_COPYBREAK) {
3046 struct sk_buff *newskb; 3046 struct sk_buff *newskb;
3047 3047
3048 newskb = dev_alloc_skb(NEW_SKB_SIZE); 3048 newskb = netdev_alloc_skb(bp->dev,
3049 NEW_SKB_SIZE);
3049 if (newskb){ 3050 if (newskb){
3050 rx_in_place = 1; 3051 rx_in_place = 1;
3051 3052
@@ -3066,7 +3067,10 @@ static void dfx_rcv_queue_process(
3066 skb = NULL; 3067 skb = NULL;
3067 } else 3068 } else
3068#endif 3069#endif
3069 skb = dev_alloc_skb(pkt_len+3); /* alloc new buffer to pass up, add room for PRH */ 3070 /* Alloc new buffer to pass up,
3071 * add room for PRH. */
3072 skb = netdev_alloc_skb(bp->dev,
3073 pkt_len + 3);
3070 if (skb == NULL) 3074 if (skb == NULL)
3071 { 3075 {
3072 printk("%s: Could not allocate receive buffer. Dropping packet.\n", bp->dev->name); 3076 printk("%s: Could not allocate receive buffer. Dropping packet.\n", bp->dev->name);