]> 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:45:05 +0000 (13:45 -0800)
commit596803fbae8ff5e2e50b5a99b3e84ee6b3603779
tree421ba9cea97ea3b57e8ed3a9622d6992ce80ddd4
parent14b5ee0a4ecdb63222554d3bd31174d0ddbd2c0d
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>
(cherry picked from commit 789728f7be1e6c7f22380ae739d7b692d2c08d0f)
src/device.c