[ofa-general] [PATCH] Non-supported functions should return NULL when returning pointers

Jack Morgenstein jackm at dev.mellanox.co.il
Tue Jan 15 23:00:17 PST 2008


On Wednesday 16 January 2008 01:50, Jon Mason wrote:
> Non-supported functions should return NULL when returning pointers.
> Some/Most user space programs will not check for a (void *) to -ENOSYS,
> which can look like a real address until referenced.
> 
This patch breaks consistency with all the other drivers, and with libibverbs.
During the debugging cycle, user programs will get segmentation faults, and fix
their code. 

- Jack



More information about the general mailing list