afs: Better tracing of protocol errors
Include the site of detection of AFS protocol errors in trace lines to better be able to determine what went wrong. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
@@ -189,7 +189,8 @@ static int afs_deliver_cb_callback(struct afs_call *call)
|
||||
call->count = ntohl(call->tmp);
|
||||
_debug("FID count: %u", call->count);
|
||||
if (call->count > AFSCBMAX)
|
||||
return afs_protocol_error(call, -EBADMSG);
|
||||
return afs_protocol_error(call, -EBADMSG,
|
||||
afs_eproto_cb_fid_count);
|
||||
|
||||
call->buffer = kmalloc(array3_size(call->count, 3, 4),
|
||||
GFP_KERNEL);
|
||||
@@ -234,7 +235,8 @@ static int afs_deliver_cb_callback(struct afs_call *call)
|
||||
call->count2 = ntohl(call->tmp);
|
||||
_debug("CB count: %u", call->count2);
|
||||
if (call->count2 != call->count && call->count2 != 0)
|
||||
return afs_protocol_error(call, -EBADMSG);
|
||||
return afs_protocol_error(call, -EBADMSG,
|
||||
afs_eproto_cb_count);
|
||||
call->offset = 0;
|
||||
call->unmarshall++;
|
||||
|
||||
|
مرجع در شماره جدید
Block a user