Re: [PATCH] PCI: endpoint: handle probable NULL pointer access

2017-11-06 Thread Bjorn Helgaas
On Sat, Oct 28, 2017 at 04:13:56PM +0530, Pankaj Dubey wrote: > On 25 October 2017 at 17:32, Kishon Vijay Abraham I wrote: > > Hi, > > > > On Wednesday 25 October 2017 01:32 AM, Bjorn Helgaas wrote: > >> On Thu, Oct 12, 2017 at 09:27:57AM +0530, Pankaj Dubey wrote: > >>> controller_group allocatio

Re: [PATCH] PCI: endpoint: handle probable NULL pointer access

2017-10-28 Thread Pankaj Dubey
On 25 October 2017 at 17:32, Kishon Vijay Abraham I wrote: > Hi, > > On Wednesday 25 October 2017 01:32 AM, Bjorn Helgaas wrote: >> On Thu, Oct 12, 2017 at 09:27:57AM +0530, Pankaj Dubey wrote: >>> controller_group allocation in pci_ep_cfs_init function can fail >>> so we should have a check while

Re: [PATCH] PCI: endpoint: handle probable NULL pointer access

2017-10-25 Thread Kishon Vijay Abraham I
Hi, On Wednesday 25 October 2017 01:32 AM, Bjorn Helgaas wrote: > On Thu, Oct 12, 2017 at 09:27:57AM +0530, Pankaj Dubey wrote: >> controller_group allocation in pci_ep_cfs_init function can fail >> so we should have a check while using it in pci_ep_cfs_add_epc_group >> for registering group, else

Re: [PATCH] PCI: endpoint: handle probable NULL pointer access

2017-10-24 Thread Bjorn Helgaas
On Thu, Oct 12, 2017 at 09:27:57AM +0530, Pankaj Dubey wrote: > controller_group allocation in pci_ep_cfs_init function can fail > so we should have a check while using it in pci_ep_cfs_add_epc_group > for registering group, else we will hit NULL pointer access. > > This patch adds required check

[PATCH] PCI: endpoint: handle probable NULL pointer access

2017-10-11 Thread Pankaj Dubey
controller_group allocation in pci_ep_cfs_init function can fail so we should have a check while using it in pci_ep_cfs_add_epc_group for registering group, else we will hit NULL pointer access. This patch adds required check for the same and returns -EPROBE_DEFER, so that endpoint controller driv