Suhas Athani has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1245955?usp=email )
Change subject: QoS: fix NULL qos_block deref in qos_perexport_insert
......................................................................
QoS: fix NULL qos_block deref in qos_perexport_insert
qos_perexport_insert(export, NULL) is valid and means "use g_qos_config"
via lqos_block. The USE_MONITORING path still used qos_block->qos_type,
which SIGSEGV'd when EnableExportQosBwControl passed NULL.
Use lqos_block for the Per_Export metrics check.
Crash site: nfs_qos.c qos_perexport_insert(), qos_block == NULL.
Change-Id: I04a982e8c3b5142c9f0c99e2a8d645e6a6ee98d3
Signed-off-by: Suhas Athani <Suhas.Athani(a)ibm.com>
---
M src/MainNFSD/nfs_qos.c
1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/55/1245955/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1245955?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I04a982e8c3b5142c9f0c99e2a8d645e6a6ee98d3
Gerrit-Change-Number: 1245955
Gerrit-PatchSet: 1
Gerrit-Owner: Suhas Athani <Suhas.Athani(a)ibm.com>