Re: [PATCH net] net/rds: NULL pointer de-reference in rds_ib_add_one()

2020-06-15 Thread David Miller
From: Ka-Cheong Poon Date: Mon, 15 Jun 2020 00:40:25 -0700 > The parent field of a struct device may be NULL. The macro > ibdev_to_node() should check for that. > > Signed-off-by: Ka-Cheong Poon Applied, thank you.

Re: [PATCH net] net/rds: NULL pointer de-reference in rds_ib_add_one()

2020-06-15 Thread santosh . shilimkar
On 6/15/20 12:40 AM, Ka-Cheong Poon wrote: The parent field of a struct device may be NULL. The macro ibdev_to_node() should check for that. Signed-off-by: Ka-Cheong Poon --- Looks good. Acked-by: Santosh Shilimkar

[PATCH net] net/rds: NULL pointer de-reference in rds_ib_add_one()

2020-06-15 Thread Ka-Cheong Poon
The parent field of a struct device may be NULL. The macro ibdev_to_node() should check for that. Signed-off-by: Ka-Cheong Poon --- net/rds/ib.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net/rds/ib.h b/net/rds/ib.h index 5ae069d..8dfff43 100644 --- a/net/rds/ib.