summaryrefslogtreecommitdiffstats
path: root/xlators/debug/io-stats/src/io-stats.c
diff options
context:
space:
mode:
authorRichard Wareing <rwareing@fb.com>2014-09-22 17:42:04 -0700
committerJeff Darcy <jeff@pl.atyp.us>2017-04-26 23:31:45 +0000
commit3579aaaef0027c62bad57952e433e15fa9f1532c (patch)
treec09b98e6c4947f1d82d56b2ed7eef47febb4d29f /xlators/debug/io-stats/src/io-stats.c
parent63a39c764181e60bc7bd8236996cf9abe353d906 (diff)
nfs: Check for null buf, and set op_errno to EIO not 0
Summary: - Prevent crashes for the case where "getattr" actually failed and returned with a NULL buf, but the op_errno was set to 0. - This is a cherry-pick of D1571184 Signed-off-by: Shreyas Siravara <sshreyas@fb.com> Change-Id: Ia2d6ad7539df714f9420dcf063c7c14e727bb7e3 BUG: 1428064 Reviewed-on: http://review.gluster.org/16152 Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Kevin Vigor <kvigor@fb.com> Reviewed-on: https://review.gluster.org/16803 Reviewed-by: Amar Tumballi <amarts@redhat.com> Tested-by: Jeff Darcy <jeff@pl.atyp.us> Reviewed-by: Jeff Darcy <jeff@pl.atyp.us>
Diffstat (limited to 'xlators/debug/io-stats/src/io-stats.c')
0 files changed, 0 insertions, 0 deletions