Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.samba.org/sfrench/cifs-2.6
Browse files Browse the repository at this point in the history
Pull CIFS fixes from Steve French.

* 'for-linus' of git://git.samba.org/sfrench/cifs-2.6:
  CIFS: Fix endianness conversion
  CIFS: Fix error handling in cifs_push_mandatory_locks
  • Loading branch information
torvalds committed Sep 10, 2012
2 parents 1b0a906 + b2ede58 commit e9bd8f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/cifs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ cifs_push_mandatory_locks(struct cifsFileInfo *cfile)
if (!buf) {
mutex_unlock(&cinode->lock_mutex);
free_xid(xid);
return rc;
return -ENOMEM;
}

for (i = 0; i < 2; i++) {
Expand Down
4 changes: 2 additions & 2 deletions fs/cifs/smb2pdu.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
*
*/

#define SMB2_HEADER_STRUCTURE_SIZE __constant_le16_to_cpu(64)
#define SMB2_HEADER_STRUCTURE_SIZE __constant_cpu_to_le16(64)

struct smb2_hdr {
__be32 smb2_buf_length; /* big endian on wire */
Expand Down Expand Up @@ -140,7 +140,7 @@ struct smb2_pdu {
*
*/

#define SMB2_ERROR_STRUCTURE_SIZE2 __constant_le16_to_cpu(9)
#define SMB2_ERROR_STRUCTURE_SIZE2 __constant_cpu_to_le16(9)

struct smb2_err_rsp {
struct smb2_hdr hdr;
Expand Down

0 comments on commit e9bd8f1

Please sign in to comment.