Re: [PATCH] iommu/qcom:fix local_base status check

2020-04-18 Thread Tang Bin
On 2020/4/18 19:54, Joerg Roedel wrote: On Thu, Apr 16, 2020 at 02:42:23PM +0800, Tang Bin wrote:     The function qcom_iommu_device_probe() does not perform sufficient error checking after executing devm_ioremap_resource(), which can result in crashes if a critical error path is encounter

Re: [PATCH] iommu/qcom:fix local_base status check

2020-04-18 Thread Joerg Roedel
On Thu, Apr 16, 2020 at 02:42:23PM +0800, Tang Bin wrote: >     The function qcom_iommu_device_probe() does not perform sufficient > error checking after executing devm_ioremap_resource(), which can result in > crashes if a critical error path is encountered. > > Fixes: 0ae349a0("iommu/qcom: A

Re: [PATCH] iommu/qcom:fix local_base status check

2020-04-16 Thread Tang Bin
On 2020/4/16 18:05, Robin Murphy wrote: On 2020-04-02 7:33 am, Tang Bin wrote: Release resources when exiting on error. Signed-off-by: Tang Bin ---   drivers/iommu/qcom_iommu.c | 5 -   1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/qcom_iommu.c b/drivers/iommu/

Re: [PATCH] iommu/qcom:fix local_base status check

2020-04-16 Thread Robin Murphy
On 2020-04-02 7:33 am, Tang Bin wrote: Release resources when exiting on error. Signed-off-by: Tang Bin --- drivers/iommu/qcom_iommu.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/qcom_iommu.c b/drivers/iommu/qcom_iommu.c index 4328da0b0..c08aa9651 10

Re: [PATCH] iommu/qcom:fix local_base status check

2020-04-15 Thread Tang Bin
Hi Bjorn: On 2020/4/2 14:45, Bjorn Andersson wrote: On Wed 01 Apr 23:33 PDT 2020, Tang Bin wrote: Release resources when exiting on error. Reviewed-by: Bjorn Andersson Thanks for your positive feedback. I don't know whether the commit message affect this patch's result. If so, I think t

Re: Re: [PATCH] iommu/qcom:fix local_base status check

2020-04-08 Thread Tang Bin
nux-kernel Subject: Re: [PATCH] iommu/qcom:fix local_base status check On Wed 01 Apr 23:33 PDT 2020, Tang Bin wrote: > Release resources when exiting on error. > Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Tang Bin > --- > drivers/iommu/qcom_iommu.c | 5 - &g

[PATCH] iommu/qcom:fix local_base status check

2020-04-02 Thread Tang Bin
Release resources when exiting on error. Signed-off-by: Tang Bin --- drivers/iommu/qcom_iommu.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/qcom_iommu.c b/drivers/iommu/qcom_iommu.c index 4328da0b0..c08aa9651 100644 --- a/drivers/iommu/qcom_iommu.c +++ b

Re: [PATCH] iommu/qcom:fix local_base status check

2020-04-01 Thread Bjorn Andersson
On Wed 01 Apr 23:33 PDT 2020, Tang Bin wrote: > Release resources when exiting on error. > Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: Tang Bin > --- > drivers/iommu/qcom_iommu.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/iommu/qco