Re: [PATCH] ACPI/IORT: Fix error handling

2017-01-23 Thread Hanjun Guo
Hi Christophe, On 2017/1/24 4:50, Christophe JAILLET wrote: If 'platform_device_alloc()' returns NULL, the current code returns 0, which means success. Return -ENOMEM instead. Fixes: 846f0e9e74a0 ("ACPI/IORT: Add support for ARM SMMU platform devices creation") Signed-off-by: Christophe JAILL

[PATCH] ACPI/IORT: Fix error handling

2017-01-23 Thread Christophe JAILLET
If 'platform_device_alloc()' returns NULL, the current code returns 0, which means success. Return -ENOMEM instead. Fixes: 846f0e9e74a0 ("ACPI/IORT: Add support for ARM SMMU platform devices creation") Signed-off-by: Christophe JAILLET --- drivers/acpi/arm64/iort.c | 2 +- 1 file changed, 1 in