X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fa2065.c;h=79bb56b8dcef00fa283284497004c0f7ba3a5dcd;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=f4ea62641acd59c41958bc96721051045f171bd3;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/drivers/net/a2065.c b/drivers/net/a2065.c index f4ea62641..79bb56b8d 100644 --- a/drivers/net/a2065.c +++ b/drivers/net/a2065.c @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include @@ -495,7 +496,7 @@ static int lance_open (struct net_device *dev) ll->rdp = LE_C0_STOP; /* Install the Interrupt handler */ - ret = request_irq(IRQ_AMIGA_PORTS, lance_interrupt, IRQF_SHARED, + ret = request_irq(IRQ_AMIGA_PORTS, lance_interrupt, SA_SHIRQ, dev->name, dev); if (ret) return ret; @@ -572,7 +573,8 @@ static int lance_start_xmit (struct sk_buff *skb, struct net_device *dev) if (len < ETH_ZLEN) { len = ETH_ZLEN; - if (skb_padto(skb, ETH_ZLEN)) + skb = skb_padto(skb, ETH_ZLEN); + if (skb == NULL) return 0; }