Commit b3d3c59a authored by Alan Cox's avatar Alan Cox Committed by David S. Miller

[BRIDGE]: Limit BRCTL_GET_BRIDGES to 2048 bridges.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2c7ec252
......@@ -324,6 +324,8 @@ static int old_deviceless(void __user *uarg)
int *indices;
int ret = 0;
if (args[2] >= 2048)
return -ENOMEM;
indices = kmalloc(args[2]*sizeof(int), GFP_KERNEL);
if (indices == NULL)
return -ENOMEM;
......
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