Re: [PATCH v2] reset: hisilicon: fix potential NULL pointer dereference

2018-08-31 Thread Gustavo A. R. Silva
On 8/31/18 12:36 PM, Stephen Boyd wrote: > > Nobody has reviewed, so I guess applied to clk-next unless someone > complains. > Thanks, Stephen. -- Gustavo

Re: [PATCH v2] reset: hisilicon: fix potential NULL pointer dereference

2018-08-31 Thread Gustavo A. R. Silva
On 8/31/18 12:36 PM, Stephen Boyd wrote: > > Nobody has reviewed, so I guess applied to clk-next unless someone > complains. > Thanks, Stephen. -- Gustavo

Re: [PATCH v2] reset: hisilicon: fix potential NULL pointer dereference

2018-08-31 Thread Stephen Boyd
Quoting Gustavo A. R. Silva (2018-07-25 17:47:19) > There is a potential execution path in which function > platform_get_resource() returns NULL. If this happens, > we will end up having a NULL pointer dereference. > > Fix this by replacing devm_ioremap with devm_ioremap_resource, > which has the

Re: [PATCH v2] reset: hisilicon: fix potential NULL pointer dereference

2018-08-31 Thread Stephen Boyd
Quoting Gustavo A. R. Silva (2018-07-25 17:47:19) > There is a potential execution path in which function > platform_get_resource() returns NULL. If this happens, > we will end up having a NULL pointer dereference. > > Fix this by replacing devm_ioremap with devm_ioremap_resource, > which has the

[PATCH v2] reset: hisilicon: fix potential NULL pointer dereference

2018-07-25 Thread Gustavo A. R. Silva
There is a potential execution path in which function platform_get_resource() returns NULL. If this happens, we will end up having a NULL pointer dereference. Fix this by replacing devm_ioremap with devm_ioremap_resource, which has the NULL check and the memory region request. This code was

[PATCH v2] reset: hisilicon: fix potential NULL pointer dereference

2018-07-25 Thread Gustavo A. R. Silva
There is a potential execution path in which function platform_get_resource() returns NULL. If this happens, we will end up having a NULL pointer dereference. Fix this by replacing devm_ioremap with devm_ioremap_resource, which has the NULL check and the memory region request. This code was