Skip to contentSkip to conversation

IB: check for memory allocation failure [v2]

PATCH Eugene Teo 2 participants 2 messages Jan 8, 2009

lore
Share & tools
lore

Eugene Teo

author
#0 lore raw
Quoted 3 lines · Niels de Vos

Hi Eugene,

please see below.

Thanks for reviewing. Here's an updated patch:

Fix error-path NULL deref in c2_register_device().

---
 drivers/infiniband/hw/amso1100/c2_provider.c |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)
Reviewed-by
#1 lore raw
Quoted 11 lines · Eugene Teo
Quoted 3 lines · Niels de Vos

Hi Eugene,

please see below.

Thanks for reviewing. Here's an updated patch:

Fix error-path NULL deref in c2_register_device().

(note: your patch was attached, not inlined...)

There is also an additional kfree() at the end of the patch. It wasn't included in the first version you sent. Looks correct now imho.

Quoted 3 lines
---
 drivers/infiniband/hw/amso1100/c2_provider.c |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)