Eric Sandeen
3e2426bd0e
btrfs: fix use of uninit "ret" in end_extent_writepage()
...
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>
2014-06-13 09:52:28 -07:00
..
2014-06-13 09:52:24 -07:00
2014-06-09 17:20:42 -07:00
2014-04-07 10:41:52 -07:00
2014-03-20 17:15:28 -07:00
2014-06-09 17:21:17 -07:00
2014-06-09 17:21:17 -07:00
2014-06-09 17:20:57 -07:00
2014-06-09 17:20:21 -07:00
2013-11-24 16:33:41 -07:00
2014-06-09 17:20:22 -07:00
2013-05-06 15:55:23 -04:00
2014-06-09 17:21:10 -07:00
2014-06-09 17:21:16 -07:00
2014-06-09 17:21:08 -07:00
2014-01-28 13:20:09 -08:00
2014-06-09 17:20:48 -07:00
2014-06-09 17:20:48 -07:00
2014-06-09 17:21:12 -07:00
2012-12-12 17:15:41 -05:00
2014-01-28 13:20:05 -08:00
2014-06-09 17:20:58 -07:00
2014-06-09 17:20:49 -07:00
2013-11-11 22:03:19 -05:00
2014-06-13 09:52:28 -07:00
2014-06-12 18:21:56 -07:00
2014-03-10 15:16:57 -04:00
2014-03-10 15:16:57 -04:00
2014-06-09 17:21:01 -07:00
2014-06-09 17:21:16 -07:00
2014-06-09 17:21:06 -07:00
2014-06-09 17:20:55 -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-06-09 17:20:53 -07:00
2014-06-09 17:21:16 -07:00
2014-06-13 09:52:19 -07: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-06-09 17:20:21 -07:00
2014-06-09 17:20:49 -07:00
2012-12-11 13:31:30 -05:00
2014-06-09 17:20:53 -07: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-06-13 09:52:26 -07:00
2014-06-09 17:20:48 -07: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-06-13 09:52:21 -07:00
2014-06-09 17:20:53 -07:00
2014-06-09 17:20:40 -07:00
2014-06-09 17:21:17 -07:00
2014-06-09 17:21:00 -07:00
2013-05-06 15:55:23 -04:00
2012-07-23 16:28:06 -04:00
2014-06-09 17:20:53 -07:00
2014-06-09 17:21:01 -07:00
2014-03-10 15:15:51 -04:00
2014-06-10 13:10:47 -07:00
2014-06-09 17:20:49 -07:00
2014-06-09 17:20:40 -07:00
2014-06-09 17:20:45 -07:00
2014-06-09 17:20:45 -07: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-09 17:21:01 -07:00
2014-06-09 17:20:26 -07:00
2014-01-30 20:08:20 -08:00
2014-01-25 23:58:18 -05:00
2014-06-09 17:20:21 -07:00