projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: stmmac: Add check for taprio basetime configuration
[linux-2.6-microblaze.git]
/
drivers
/
net
/
ethernet
/
stmicro
/
stmmac
/
stmmac_tc.c
diff --git
a/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
b/drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
index
773e415
..
2cfb18c
100644
(file)
--- a/
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
+++ b/
drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c
@@
-926,6
+926,9
@@
static int tc_setup_taprio(struct stmmac_priv *priv,
int i, ret = 0;
u64 ctr;
+ if (qopt->base_time < 0)
+ return -ERANGE;
+
if (!priv->dma_cap.estsel)
return -EOPNOTSUPP;