commit | 57cfc1060f35ac2345cb37ea474f9644ac5cfd75 | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Tue Jun 26 12:57:03 2012 -0700 |
committer | Sage Weil <sage@inktank.com> | Mon Jul 30 18:21:46 2012 -0700 |
tree | 5a9d18fe47badf7002172cb2af6375d34e5159a6 | |
parent | 4e891e0af0f0011c90067373c46d7228568ec079 [diff] |
rbd: make rbd_create_rw_ops() return a pointer Either rbd_create_rw_ops() will succeed, or it will fail because a memory allocation failed. Have it just return a valid pointer or null rather than stuffing a pointer into a provided address and returning an errno. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>