Eric Sandeen
59f35b983e
xfs: don't call xfs_da_shrink_inode with NULL bp
...
commit bb3d48dcf86a97dc25fe9fc2c11938e19cb4399a upstream.
xfs_attr3_leaf_create may have errored out before instantiating a buffer,
for example if the blkno is out of range. In that case there is no work
to do to remove it, and in fact xfs_da_shrink_inode will lead to an oops
if we try.
This also seems to fix a flaw where the original error from
xfs_attr3_leaf_create gets overwritten in the cleanup case, and it
removes a pointless assignment to bp which isn't used after this.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=199969
Reported-by: Xu, Wen <wen.xu@gatech.edu>
Tested-by: Xu, Wen <wen.xu@gatech.edu>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Cc: Eduardo Valentin <eduval@amazon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-09 12:16:39 +02:00
..
2018-08-09 12:16:39 +02:00
2017-06-19 08:59:10 -07:00
2017-05-08 17:15:13 -07:00
2017-07-12 16:26:03 -07:00
2017-06-05 16:59:08 +02:00
2017-10-11 10:21:06 -07:00
2017-06-27 18:23:21 -07:00
2018-02-03 17:39:14 +01:00
2017-08-31 09:31:47 -07:00
2017-10-11 10:21:07 -07:00
2017-07-13 14:55:05 -07:00
2017-06-20 10:45:22 -07:00
2018-02-03 17:39:06 +01:00
2018-02-03 17:39:06 +01:00
2017-10-11 10:21:06 -07:00
2017-10-11 10:21:06 -07:00
2017-09-02 08:22:19 -07:00
2017-09-01 10:55:30 -07:00
2018-02-03 17:39:10 +01:00
2017-08-31 09:31:47 -07:00
2017-06-20 10:45:22 -07:00
2018-05-30 07:52:23 +02:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:15 +01:00
2018-02-03 17:39:15 +01:00
2017-09-25 18:22:30 -07:00
2017-08-22 09:22:24 -07:00
2017-02-16 17:20:12 -08:00
2017-02-09 10:50:25 -08:00
2017-04-25 09:40:42 -07:00
2018-05-09 09:51:52 +02:00
2017-10-16 12:26:50 -07:00
2017-04-03 15:18:17 -07:00
2018-06-05 11:41:55 +02:00
2017-06-19 14:11:33 -07:00
2017-06-19 08:59:10 -07:00
2018-08-09 12:16:39 +02:00
2017-06-19 14:11:34 -07:00
2016-11-28 14:57:42 +11:00
2017-10-11 10:21:06 -07:00
2018-02-03 17:39:06 +01:00
2017-07-02 22:46:13 -07:00
2017-04-03 15:18:17 -07:00
2017-06-19 14:11:33 -07:00
2018-07-11 16:29:22 +02:00
2017-06-19 14:11:33 -07:00
2017-09-26 10:55:19 -07:00
2017-09-26 10:55:19 -07:00
2018-07-11 16:29:22 +02:00
2017-06-19 14:11:34 -07:00
2017-06-19 14:11:34 -07:00
2017-09-12 20:02:22 -07:00
2017-08-04 13:43:36 -07:00
2017-06-19 14:11:33 -07:00
2018-02-03 17:39:06 +01:00
2017-10-11 10:21:06 -07:00
2017-06-19 14:11:33 -07:00
2017-06-19 08:59:10 -07:00
2017-11-02 11:10:55 +01:00
2017-10-11 10:21:06 -07:00
2018-06-05 11:41:55 +02:00
2017-10-11 10:21:06 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-06-19 14:11:33 -07:00
2017-04-28 08:11:08 -07:00
2018-03-03 10:24:33 +01:00
2017-07-17 08:45:34 +01:00
2018-02-03 17:39:06 +01:00
2018-02-03 17:39:06 +01:00
2017-10-03 21:27:55 -07:00
2017-06-19 14:11:35 -07:00
2017-04-25 09:40:42 -07:00
2017-09-01 10:55:30 -07:00
2017-06-19 14:11:34 -07:00
2017-06-19 14:11:33 -07:00
2017-06-19 14:11:33 -07:00
2018-07-11 16:29:22 +02:00
2017-02-09 11:36:40 -08:00
2017-09-01 10:55:30 -07:00
2017-06-20 10:45:22 -07:00
2017-06-19 08:59:10 -07:00
2017-06-27 18:23:21 -07:00
2017-04-03 15:18:17 -07:00
2018-06-05 11:41:55 +02:00
2017-08-22 09:22:24 -07:00
2017-06-19 08:59:10 -07:00
2017-09-01 10:55:30 -07:00
2017-09-01 10:55:30 -07:00
2017-08-22 09:22:23 -07:00
2017-06-19 14:11:33 -07:00
2017-09-01 10:55:30 -07:00
2017-09-01 10:55:30 -07:00
2016-12-05 12:32:14 +11:00
2017-06-19 08:59:10 -07:00