Skip to content

Commit 8668115

Browse files
committed
smb3: fix unneeded error message on change notify
We should not be logging a warning repeatedly on change notify. CC: Stable <[email protected]> # v5.6+ Signed-off-by: Steve French <[email protected]> Reviewed-by: Ronnie Sahlberg <[email protected]>
1 parent 2e98c01 commit 8668115

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

fs/cifs/smb2misc.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,13 @@ smb2_get_data_area_len(int *off, int *len, struct smb2_sync_hdr *shdr)
354354
((struct smb2_ioctl_rsp *)shdr)->OutputCount);
355355
break;
356356
case SMB2_CHANGE_NOTIFY:
357+
*off = le16_to_cpu(
358+
((struct smb2_change_notify_rsp *)shdr)->OutputBufferOffset);
359+
*len = le32_to_cpu(
360+
((struct smb2_change_notify_rsp *)shdr)->OutputBufferLength);
361+
break;
357362
default:
358-
/* BB FIXME for unimplemented cases above */
359-
cifs_dbg(VFS, "no length check for command\n");
363+
cifs_dbg(VFS, "no length check for command %d\n", le16_to_cpu(shdr->Command));
360364
break;
361365
}
362366

0 commit comments

Comments
 (0)