RE: [PATCH] rapidio: fix potential NULL pointer dereference

2016-04-22 Thread Bounine, Alexandre
Thank you. Ack-ed. > -Original Message- > From: Vladimir Zapolskiy [mailto:v...@mleia.com] > Sent: Thursday, April 21, 2016 4:05 PM > To: Matt Porter; Bounine, Alexandre > Cc: linux-kernel@vger.kernel.org > Subject: [PATCH] rapidio: fix potential NULL pointer dereferen

RE: [PATCH] rapidio: fix potential NULL pointer dereference

2016-04-22 Thread Bounine, Alexandre
Thank you. Ack-ed. > -Original Message- > From: Vladimir Zapolskiy [mailto:v...@mleia.com] > Sent: Thursday, April 21, 2016 4:05 PM > To: Matt Porter; Bounine, Alexandre > Cc: linux-kernel@vger.kernel.org > Subject: [PATCH] rapidio: fix potential NULL pointer dereferen

[PATCH] rapidio: fix potential NULL pointer dereference

2016-04-21 Thread Vladimir Zapolskiy
The change fixes improper check for a returned error value by class_create() function, which on error returns ERR_PTR() value, thus the original check always results in a dead code on error path. Signed-off-by: Vladimir Zapolskiy --- drivers/rapidio/devices/rio_mport_cdev.c | 4

[PATCH] rapidio: fix potential NULL pointer dereference

2016-04-21 Thread Vladimir Zapolskiy
The change fixes improper check for a returned error value by class_create() function, which on error returns ERR_PTR() value, thus the original check always results in a dead code on error path. Signed-off-by: Vladimir Zapolskiy --- drivers/rapidio/devices/rio_mport_cdev.c | 4 ++-- 1 file