Re: nfc: nci: fix potential NULL pointer dereference

2017-06-12 Thread Guenter Roeck
On 06/12/2017 03:28 PM, Gustavo A. R. Silva wrote: Hi Guenter, Please, see my comments below Quoting Guenter Roeck : On Mon, Jun 12, 2017 at 05:02:23PM -0500, Gustavo A. R. Silva wrote: NULL check at line 76: if (conn_info) {, implies that pointer conn_info might be

Re: nfc: nci: fix potential NULL pointer dereference

2017-06-12 Thread Guenter Roeck
On 06/12/2017 03:28 PM, Gustavo A. R. Silva wrote: Hi Guenter, Please, see my comments below Quoting Guenter Roeck : On Mon, Jun 12, 2017 at 05:02:23PM -0500, Gustavo A. R. Silva wrote: NULL check at line 76: if (conn_info) {, implies that pointer conn_info might be NULL, but this pointer

Re: nfc: nci: fix potential NULL pointer dereference

2017-06-12 Thread Gustavo A. R. Silva
Hi Guenter, Please, see my comments below Quoting Guenter Roeck : On Mon, Jun 12, 2017 at 05:02:23PM -0500, Gustavo A. R. Silva wrote: NULL check at line 76: if (conn_info) {, implies that pointer conn_info might be NULL, but this pointer is being previously dereferenced,

Re: nfc: nci: fix potential NULL pointer dereference

2017-06-12 Thread Gustavo A. R. Silva
Hi Guenter, Please, see my comments below Quoting Guenter Roeck : On Mon, Jun 12, 2017 at 05:02:23PM -0500, Gustavo A. R. Silva wrote: NULL check at line 76: if (conn_info) {, implies that pointer conn_info might be NULL, but this pointer is being previously dereferenced, which might cause a

Re: nfc: nci: fix potential NULL pointer dereference

2017-06-12 Thread Guenter Roeck
On Mon, Jun 12, 2017 at 05:02:23PM -0500, Gustavo A. R. Silva wrote: > NULL check at line 76: if (conn_info) {, implies that pointer conn_info > might be NULL, but this pointer is being previously dereferenced, > which might cause a NULL pointer dereference. > > Add NULL check before

Re: nfc: nci: fix potential NULL pointer dereference

2017-06-12 Thread Guenter Roeck
On Mon, Jun 12, 2017 at 05:02:23PM -0500, Gustavo A. R. Silva wrote: > NULL check at line 76: if (conn_info) {, implies that pointer conn_info > might be NULL, but this pointer is being previously dereferenced, > which might cause a NULL pointer dereference. > > Add NULL check before

[PATCH] nfc: nci: fix potential NULL pointer dereference

2017-06-12 Thread Gustavo A. R. Silva
NULL check at line 76: if (conn_info) {, implies that pointer conn_info might be NULL, but this pointer is being previously dereferenced, which might cause a NULL pointer dereference. Add NULL check before dereferencing pointer conn_info in order to avoid a potential NULL pointer dereference.

[PATCH] nfc: nci: fix potential NULL pointer dereference

2017-06-12 Thread Gustavo A. R. Silva
NULL check at line 76: if (conn_info) {, implies that pointer conn_info might be NULL, but this pointer is being previously dereferenced, which might cause a NULL pointer dereference. Add NULL check before dereferencing pointer conn_info in order to avoid a potential NULL pointer dereference.