Eric Sandeen
28084dbaaf
btrfs: fix use of uninit "ret" in end_extent_writepage()
...
commit 3e2426bd0e upstream.
If this condition in end_extent_writepage() is false:
if (tree->ops && tree->ops->writepage_end_io_hook)
we will then test an uninitialized "ret" at:
ret = ret < 0 ? ret : -EIO;
The test for ret is for the case where ->writepage_end_io_hook
failed, and we'd choose that ret as the error; but if
there is no ->writepage_end_io_hook, nothing sets ret.
Initializing ret to 0 should be sufficient; if
writepage_end_io_hook wasn't set, (!uptodate) means
non-zero err was passed in, so we choose -EIO in that case.
Signed-of-by: Eric Sandeen <sandeen@redhat.com >
Signed-off-by: Chris Mason <clm@fb.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-06-30 20:14:03 -07:00
..
2014-01-30 20:08:20 -08:00
2014-01-28 13:19:50 -08:00
2014-04-07 10:41:52 -07:00
2014-03-20 17:15:28 -07:00
2014-06-30 20:14:03 -07:00
2014-06-30 20:14:03 -07:00
2014-03-10 15:16:42 -04:00
2014-02-04 12:26:56 -08:00
2013-11-24 16:33:41 -07:00
2014-04-03 16:21:00 -07:00
2013-05-06 15:55:23 -04:00
2014-04-07 09:08:39 -07:00
2014-06-30 20:14:03 -07:00
2014-03-10 15:17:16 -04:00
2014-01-28 13:20:09 -08:00
2014-03-20 17:15:28 -07:00
2014-01-28 13:20:25 -08:00
2014-03-10 15:17:27 -04:00
2012-12-12 17:15:41 -05:00
2014-01-28 13:20:05 -08:00
2014-06-30 20:14:02 -07:00
2013-11-11 21:51:02 -05:00
2013-11-11 22:03:19 -05:00
2008-09-25 11:04:06 -04:00
2014-06-30 20:14:03 -07:00
2014-04-06 17:34:37 -07:00
2014-03-10 15:16:57 -04:00
2014-03-10 15:16:57 -04:00
2014-06-30 20:14:03 -07:00
2014-01-30 20:08:20 -08:00
2014-06-30 20:14:02 -07:00
2014-06-30 20:14:02 -07:00
2013-11-11 21:51:33 -05:00
2014-01-28 13:20:31 -08:00
2014-01-28 13:20:31 -08:00
2014-01-28 13:19:39 -08:00
2014-04-24 16:43:33 -07:00
2011-04-25 16:46:11 +08:00
2014-04-11 14:16:53 -07:00
2014-05-22 05:40:13 +09:00
2014-01-28 13:20:31 -08:00
2013-05-06 15:55:23 -04:00
2013-03-14 14:57:10 -04:00
2014-01-28 13:20:05 -08:00
2014-01-28 13:20:31 -08:00
2012-12-11 13:31:30 -05:00
2014-03-10 15:17:28 -04:00
2014-03-10 15:17:16 -04:00
2014-01-28 13:19:37 -08:00
2014-01-29 07:06:29 -08:00
2013-05-06 15:55:23 -04:00
2014-01-28 13:20:24 -08:00
2014-01-28 13:20:24 -08:00
2014-03-10 15:17:16 -04:00
2014-04-04 15:31:36 -07:00
2013-02-01 14:24:23 -05:00
2012-06-14 21:29:16 -04:00
2014-03-10 15:17:16 -04:00
2014-04-06 17:34:35 -07:00
2014-03-10 15:16:51 -04:00
2014-06-30 20:14:03 -07:00
2014-06-30 20:14:03 -07:00
2013-05-06 15:55:23 -04:00
2012-07-23 16:28:06 -04:00
2014-04-27 13:26:28 -07:00
2014-06-30 20:14:03 -07:00
2014-03-10 15:15:51 -04:00
2014-04-06 17:39:30 -07:00
2014-04-06 17:39:30 -07:00
2013-11-11 21:59:45 -05:00
2014-03-10 15:16:44 -04:00
2014-03-10 15:16:43 -04:00
2014-01-29 07:06:27 -08:00
2014-01-29 07:06:27 -08:00
2014-01-28 13:20:05 -08:00
2014-06-30 20:14:03 -07:00
2014-03-10 15:17:16 -04:00
2014-01-30 20:08:20 -08:00
2014-01-25 23:58:18 -05:00
2014-01-28 13:20:05 -08:00