]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/ocrdma: Fix permissions for OCRDMA_RESET_STATS
authorAnton Vasilyev <vasilyev@ispras.ru>
Tue, 8 Aug 2017 15:56:37 +0000 (18:56 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 21 Dec 2017 02:56:24 +0000 (19:56 -0700)
commit55a0a6c56fd1bfd82e919d9c7e9944d42ac1f8c7
tree70ab2a2dde5b0710d50e21d91d8c4392a4587c30
parentfee3820a943d4d3c2c45385f9cbc5db0c149992e
RDMA/ocrdma: Fix permissions for OCRDMA_RESET_STATS

Debugfs file reset_stats is created with S_IRUSR permissions,
but ocrdma_dbgfs_ops_read() doesn't support OCRDMA_RESET_STATS,
whereas ocrdma_dbgfs_ops_write() supports only OCRDMA_RESET_STATS.

The patch fixes misstype with permissions.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Acked-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/ocrdma/ocrdma_stats.c