drivers/net/skfp: if !capable(CAP_NET_ADMIN): inverted logic
Fix inverted logic Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e5664bb2a7
commit
c25b9abbc2
|
@ -1003,9 +1003,9 @@ static int skfp_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
|
|||
break;
|
||||
case SKFP_CLR_STATS: /* Zero out the driver statistics */
|
||||
if (!capable(CAP_NET_ADMIN)) {
|
||||
memset(&lp->MacStat, 0, sizeof(lp->MacStat));
|
||||
} else {
|
||||
status = -EPERM;
|
||||
} else {
|
||||
memset(&lp->MacStat, 0, sizeof(lp->MacStat));
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue