Re: [PATCH] lib: logic_pio: Fix potential NULL pointer dereference

2018-04-04 Thread Bjorn Helgaas
[+cc linux-pci] On Tue, Apr 03, 2018 at 04:15:05PM -0500, Gustavo A. R. Silva wrote: > new_range is being dereferenced before it is null checked, hence > there is a potential null pointer dereference. > > Fix this by moving the pointer dereference after new_range has > been properly null

Re: [PATCH] lib: logic_pio: Fix potential NULL pointer dereference

2018-04-04 Thread Bjorn Helgaas
[+cc linux-pci] On Tue, Apr 03, 2018 at 04:15:05PM -0500, Gustavo A. R. Silva wrote: > new_range is being dereferenced before it is null checked, hence > there is a potential null pointer dereference. > > Fix this by moving the pointer dereference after new_range has > been properly null

Re: [PATCH] lib: logic_pio: Fix potential NULL pointer dereference

2018-04-04 Thread John Garry
On 03/04/2018 22:15, Gustavo A. R. Silva wrote: new_range is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after new_range has been properly null checked. Hi Gustavo, In fact we expect new_range

Re: [PATCH] lib: logic_pio: Fix potential NULL pointer dereference

2018-04-04 Thread John Garry
On 03/04/2018 22:15, Gustavo A. R. Silva wrote: new_range is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after new_range has been properly null checked. Hi Gustavo, In fact we expect new_range

[PATCH] lib: logic_pio: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
new_range is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after new_range has been properly null checked. Addresses-Coverity-ID: 1466163 ("Dereference before null check") Fixes: 0a7198426259 ("lib:

[PATCH] lib: logic_pio: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
new_range is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after new_range has been properly null checked. Addresses-Coverity-ID: 1466163 ("Dereference before null check") Fixes: 0a7198426259 ("lib:

[PATCH] lib: logic_pio: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
new_range is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after new_range has been properly null checked. Addresses-Coverity-ID: 1466163 ("Dereference before null check") Fixes: 0a7198426259 ("lib:

[PATCH] lib: logic_pio: Fix potential NULL pointer dereference

2018-04-03 Thread Gustavo A. R. Silva
new_range is being dereferenced before it is null checked, hence there is a potential null pointer dereference. Fix this by moving the pointer dereference after new_range has been properly null checked. Addresses-Coverity-ID: 1466163 ("Dereference before null check") Fixes: 0a7198426259 ("lib: