On Wed, Oct 17, 2018 at 10:05:10AM -0600, Logan Gunthorpe wrote:
> We should only assign 'p2pmem_published' if 'pdev->p2pdma' is not NULL.
> The extra check on 'publish' makes no sense.
>
> Signed-off-by: Logan Gunthorpe
> Reported-by: Dan Carpenter
> Cc: Bjorn Helgaas
> Cc: Christoph Hellwig
On Wed, Oct 17, 2018 at 10:05:10AM -0600, Logan Gunthorpe wrote:
> We should only assign 'p2pmem_published' if 'pdev->p2pdma' is not NULL.
> The extra check on 'publish' makes no sense.
>
> Signed-off-by: Logan Gunthorpe
> Reported-by: Dan Carpenter
> Cc: Bjorn Helgaas
> Cc: Christoph Hellwig
We should only assign 'p2pmem_published' if 'pdev->p2pdma' is not NULL.
The extra check on 'publish' makes no sense.
Signed-off-by: Logan Gunthorpe
Reported-by: Dan Carpenter
Cc: Bjorn Helgaas
Cc: Christoph Hellwig
---
drivers/pci/p2pdma.c | 6 ++
1 file changed, 2 insertions(+), 4
We should only assign 'p2pmem_published' if 'pdev->p2pdma' is not NULL.
The extra check on 'publish' makes no sense.
Signed-off-by: Logan Gunthorpe
Reported-by: Dan Carpenter
Cc: Bjorn Helgaas
Cc: Christoph Hellwig
---
drivers/pci/p2pdma.c | 6 ++
1 file changed, 2 insertions(+), 4
4 matches
Mail list logo