rbd: use kmemdup()
This replaces two kmalloc()/memcpy() combinations with a single call to kmemdup(). Signed-off-by: NAlex Elder <elder@inktank.com> Reviewed-by: NDavid Zafman <david.zafman@inktank.com> Reviewed-by: NJosh Durgin <josh.durgin@inktank.com>
Showing
想要评论请 注册 或 登录