Commit 1e31c07b authored by Nathan Scott's avatar Nathan Scott

[XFS] When tracing extended attribute calls, only access the buffer when it exists.

SGI Modid: 2.5.x-xfs:slinx:160244a
parent 739d17f2
......@@ -2234,7 +2234,8 @@ xfs_attr_trace_l_c(char *where, struct xfs_attr_list_context *context)
(__psunsigned_t)context->count,
(__psunsigned_t)context->firstu,
(__psunsigned_t)
(context->count > 0)
((context->count > 0) &&
!(context->flags & (ATTR_KERNAMELS|ATTR_KERNOVAL)))
? (ATTR_ENTRY(context->alist,
context->count-1)->a_valuelen)
: 0,
......@@ -2262,7 +2263,8 @@ xfs_attr_trace_l_cn(char *where, struct xfs_attr_list_context *context,
(__psunsigned_t)context->count,
(__psunsigned_t)context->firstu,
(__psunsigned_t)
(context->count > 0)
((context->count > 0) &&
!(context->flags & (ATTR_KERNAMELS|ATTR_KERNOVAL)))
? (ATTR_ENTRY(context->alist,
context->count-1)->a_valuelen)
: 0,
......@@ -2290,7 +2292,8 @@ xfs_attr_trace_l_cb(char *where, struct xfs_attr_list_context *context,
(__psunsigned_t)context->count,
(__psunsigned_t)context->firstu,
(__psunsigned_t)
(context->count > 0)
((context->count > 0) &&
!(context->flags & (ATTR_KERNAMELS|ATTR_KERNOVAL)))
? (ATTR_ENTRY(context->alist,
context->count-1)->a_valuelen)
: 0,
......@@ -2318,7 +2321,8 @@ xfs_attr_trace_l_cl(char *where, struct xfs_attr_list_context *context,
(__psunsigned_t)context->count,
(__psunsigned_t)context->firstu,
(__psunsigned_t)
(context->count > 0)
((context->count > 0) &&
!(context->flags & (ATTR_KERNAMELS|ATTR_KERNOVAL)))
? (ATTR_ENTRY(context->alist,
context->count-1)->a_valuelen)
: 0,
......
Markdown is supported
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