]> git.openfabrics.org - ~shefty/libibverbs.git/commit
Check return of calloc() in ibv_get_device_list()
authorRoland Dreier <rolandd@cisco.com>
Wed, 17 Jan 2007 21:41:33 +0000 (13:41 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 17 Jan 2007 21:43:53 +0000 (13:43 -0800)
commit789728f7be1e6c7f22380ae739d7b692d2c08d0f
treead8616c17ba0d364bc6b91d5e62caaab2e3e10ad
parentd5a3825aca4520ed71d44c5d652f994960d42686
Check return of calloc() in ibv_get_device_list()

Don't blindly copy device pointers if calloc() returns NULL.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
src/device.c