Merge tag 'printk-for-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/print...
[platform/kernel/linux-starfive.git] / fs / smb / client / smb2ops.c
index d9eda2e..9aeecee 100644 (file)
@@ -297,7 +297,7 @@ smb2_adjust_credits(struct TCP_Server_Info *server,
                cifs_server_dbg(VFS, "request has less credits (%d) than required (%d)",
                                credits->value, new_val);
 
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
        }
 
        spin_lock(&server->req_lock);
@@ -1161,7 +1161,7 @@ smb2_set_ea(const unsigned int xid, struct cifs_tcon *tcon,
                        /* Use a fudge factor of 256 bytes in case we collide
                         * with a different set_EAs command.
                         */
-                       if(CIFSMaxBufSize - MAX_SMB2_CREATE_RESPONSE_SIZE -
+                       if (CIFSMaxBufSize - MAX_SMB2_CREATE_RESPONSE_SIZE -
                           MAX_SMB2_CLOSE_RESPONSE_SIZE - 256 <
                           used_len + ea_name_len + ea_value_len + 1) {
                                rc = -ENOSPC;
@@ -4591,7 +4591,7 @@ handle_read_data(struct TCP_Server_Info *server, struct mid_q_entry *mid,
 
        if (shdr->Command != SMB2_READ) {
                cifs_server_dbg(VFS, "only big read responses are supported\n");
-               return -ENOTSUPP;
+               return -EOPNOTSUPP;
        }
 
        if (server->ops->is_session_expired &&