summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/pci.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2016-08-05 12:05:22 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-08-10 21:17:03 -0400
commit4a979fd7bc7bc3799e51bc9589c60407fe6bf444 (patch)
tree9d69d6dd4c1984db8189a482b0f3b2f8898dc10d /drivers/gpu/nvgpu/pci.c
parent394da0f2210ad298b3ecdfddc7ab0c57124cd7d0 (diff)
gpu: nvgpu: Set PCI device node permissions
Device nodes for PCI devices need to be RW for everybody. Bug 200225622 Change-Id: I14de9d17f76ca45ba525d0c4f5e8d448bbfda98b Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/1198556 (cherry picked from commit 60bf9118715b61b8cd3f2379479caf280ae4e35c) Reviewed-on: http://git-master/r/1200713 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/gpu/nvgpu/pci.c')
-rw-r--r--drivers/gpu/nvgpu/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c
index fcf63ddc..5165c715 100644
--- a/drivers/gpu/nvgpu/pci.c
+++ b/drivers/gpu/nvgpu/pci.c
@@ -131,6 +131,7 @@ static int nvgpu_pci_init_support(struct pci_dev *pdev)
131 131
132static char *nvgpu_pci_devnode(struct device *dev, umode_t *mode) 132static char *nvgpu_pci_devnode(struct device *dev, umode_t *mode)
133{ 133{
134 *mode = S_IRUGO | S_IWUGO;
134 return kasprintf(GFP_KERNEL, "nvgpu-pci/%s", dev_name(dev)); 135 return kasprintf(GFP_KERNEL, "nvgpu-pci/%s", dev_name(dev));
135} 136}
136 137