Commit 9bbe1a9c authored by Celso González's avatar Celso González Committed by Linus Torvalds

[PATCH] drivers_net_ni65.c save_flags unsigned check

  The function save_flags must use unsigned long instead long (signed)
  This trivial patch solves the problem
parent aa3ff3b2
...@@ -1108,7 +1108,7 @@ static int ni65_send_packet(struct sk_buff *skb, struct net_device *dev) ...@@ -1108,7 +1108,7 @@ static int ni65_send_packet(struct sk_buff *skb, struct net_device *dev)
{ {
short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN; short len = ETH_ZLEN < skb->len ? skb->len : ETH_ZLEN;
struct tmd *tmdp; struct tmd *tmdp;
long flags; unsigned long flags;
#ifdef XMT_VIA_SKB #ifdef XMT_VIA_SKB
if( (unsigned long) (skb->data + skb->len) > 0x1000000) { if( (unsigned long) (skb->data + skb->len) > 0x1000000) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment