瀏覽代碼

Merge branch 'for-2.6.37/misc' of git://git.kernel.dk/linux-2.6-block

* 'for-2.6.37/misc' of git://git.kernel.dk/linux-2.6-block:
  pipe: fix failure to return error code on ->confirm()
Linus Torvalds 15 年之前
父節點
當前提交
04cc69768e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/pipe.c

+ 1 - 1
fs/pipe.c

@@ -382,7 +382,7 @@ pipe_read(struct kiocb *iocb, const struct iovec *_iov,
 			error = ops->confirm(pipe, buf);
 			if (error) {
 				if (!ret)
-					error = ret;
+					ret = error;
 				break;
 			}