Re: [PATCH 1/2] platform/x86: dell-wmi-descriptor: check if memory was allocated

2017-11-09 Thread Pali Rohár
On Friday 03 November 2017 11:27:21 Mario Limonciello wrote: > devm_kzalloc will return NULL pointer if no memory was allocated. > This should be checked. This problem also existed when the driver > was dell-wmi.c. > > Signed-off-by: Mario Limonciello Reviewed-by:

Re: [PATCH 1/2] platform/x86: dell-wmi-descriptor: check if memory was allocated

2017-11-09 Thread Pali Rohár
On Friday 03 November 2017 11:27:21 Mario Limonciello wrote: > devm_kzalloc will return NULL pointer if no memory was allocated. > This should be checked. This problem also existed when the driver > was dell-wmi.c. > > Signed-off-by: Mario Limonciello Reviewed-by: Pali Rohár > --- >

[PATCH 1/2] platform/x86: dell-wmi-descriptor: check if memory was allocated

2017-11-03 Thread Mario Limonciello
devm_kzalloc will return NULL pointer if no memory was allocated. This should be checked. This problem also existed when the driver was dell-wmi.c. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-wmi-descriptor.c | 5 + 1 file changed, 5

[PATCH 1/2] platform/x86: dell-wmi-descriptor: check if memory was allocated

2017-11-03 Thread Mario Limonciello
devm_kzalloc will return NULL pointer if no memory was allocated. This should be checked. This problem also existed when the driver was dell-wmi.c. Signed-off-by: Mario Limonciello --- drivers/platform/x86/dell-wmi-descriptor.c | 5 + 1 file changed, 5 insertions(+) diff --git