Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c25b9abb authored by Roel Kluin's avatar Roel Kluin Committed by David S. Miller
Browse files

drivers/net/skfp: if !capable(CAP_NET_ADMIN): inverted logic



Fix inverted logic

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e5664bb2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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: