diff options
Diffstat (limited to 'drivers/firewire/fw-cdev.c')
-rw-r--r-- | drivers/firewire/fw-cdev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c index a1637a86da3d..d48fa1c23a77 100644 --- a/drivers/firewire/fw-cdev.c +++ b/drivers/firewire/fw-cdev.c | |||
@@ -1245,6 +1245,10 @@ static int ioctl_send_broadcast_request(struct client *client, void *buffer) | |||
1245 | return -EINVAL; | 1245 | return -EINVAL; |
1246 | } | 1246 | } |
1247 | 1247 | ||
1248 | /* Security policy: Only allow accesses to Units Space. */ | ||
1249 | if (request->offset < CSR_REGISTER_BASE + CSR_CONFIG_ROM_END) | ||
1250 | return -EACCES; | ||
1251 | |||
1248 | return init_request(client, request, LOCAL_BUS | 0x3f, SCODE_100); | 1252 | return init_request(client, request, LOCAL_BUS | 0x3f, SCODE_100); |
1249 | } | 1253 | } |
1250 | 1254 | ||