Commit 281dbe5d authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

libceph: add an ONSTACK initializer for oids

An on-stack oid in ceph_ioctl_get_dataloc() is not initialized,
resulting in a WARN and a NULL pointer dereference later on.  We will
have more of these on-stack in the future, so fix it with a convenience
macro.

Fixes: d30291b9

 ("libceph: variable-sized ceph_object_id")
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent b2aa5d0b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment