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

[PATCH] drivers_net_pcmcia_3c574_cs.c save_flags unsigned check

  The function save_flags must use an unsigned long parameter instead a
  long (signed) one

  This trivial patch solves the problem
parent 8a0dfac8
......@@ -1231,7 +1231,7 @@ static int el3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
case SIOCDEVPRIVATE+1: /* Read the specified MII register. */
{
int saved_window;
long flags;
unsigned long flags;
save_flags(flags);
cli();
......@@ -1245,7 +1245,7 @@ static int el3_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
case SIOCDEVPRIVATE+2: /* Write the specified MII register */
{
int saved_window;
long flags;
unsigned long flags;
if (!capable(CAP_NET_ADMIN))
return -EPERM;
......
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