浏览代码

nfsd4: leave reply buffer space for failed setattr

This fixes an ommission from 18032ca062e621e15683cb61c066ef3dc5414a7b
"NFSD: Server implementation of MAC Labeling", which increased the size
of the setattr error reply without increasing COMPOUND_ERR_SLACK_SPACE.

Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
J. Bruce Fields 11 年之前
父节点
当前提交
04819bf644
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/nfsd/nfsd.h

+ 1 - 1
fs/nfsd/nfsd.h

@@ -282,7 +282,7 @@ void		nfsd_lockd_shutdown(void);
  * reason.
  * reason.
  */
  */
 #define	COMPOUND_SLACK_SPACE		140    /* OP_GETFH */
 #define	COMPOUND_SLACK_SPACE		140    /* OP_GETFH */
-#define COMPOUND_ERR_SLACK_SPACE	12     /* OP_SETATTR */
+#define COMPOUND_ERR_SLACK_SPACE	16     /* OP_SETATTR */
 
 
 #define NFSD_LAUNDROMAT_MINTIMEOUT      1   /* seconds */
 #define NFSD_LAUNDROMAT_MINTIMEOUT      1   /* seconds */