diff options
Diffstat (limited to 'drivers/firewire/fw-cdev.c')
-rw-r--r-- | drivers/firewire/fw-cdev.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c index 7eb6594cc3e5..8a5e6ae2552c 100644 --- a/drivers/firewire/fw-cdev.c +++ b/drivers/firewire/fw-cdev.c | |||
@@ -739,15 +739,11 @@ static void release_descriptor(struct client *client, | |||
739 | static int ioctl_add_descriptor(struct client *client, void *buffer) | 739 | static int ioctl_add_descriptor(struct client *client, void *buffer) |
740 | { | 740 | { |
741 | struct fw_cdev_add_descriptor *request = buffer; | 741 | struct fw_cdev_add_descriptor *request = buffer; |
742 | struct fw_card *card = client->device->card; | ||
743 | struct descriptor_resource *r; | 742 | struct descriptor_resource *r; |
744 | int ret; | 743 | int ret; |
745 | 744 | ||
746 | /* Access policy: Allow this ioctl only on local nodes' device files. */ | 745 | /* Access policy: Allow this ioctl only on local nodes' device files. */ |
747 | spin_lock_irq(&card->lock); | 746 | if (!client->device->is_local) |
748 | ret = client->device->node_id != card->local_node->node_id; | ||
749 | spin_unlock_irq(&card->lock); | ||
750 | if (ret) | ||
751 | return -ENOSYS; | 747 | return -ENOSYS; |
752 | 748 | ||
753 | if (request->length > 256) | 749 | if (request->length > 256) |