Suhas Athani has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1226665?usp=email )
Change subject: Move full debug log after NULL state check in fsal_start_io()
......................................................................
Move full debug log after NULL state check in fsal_start_io()
The debug log statement printing the open state pointer and
state type in fsal_start_io() was placed before checking if
state is NULL. This could lead to potential dereference of a
NULL pointer when full debug logging is enabled.
This patch moves the LogFullDebug() call after the NULL check
to ensure safe access to state fields.
Change-Id: I68167e3d8209221559285e49690f5b28feaab081
Signed-off-by: Suhas Athani <Suhas.Athani(a)ibm.com>
---
M src/FSAL/commonlib.c
1 file changed, 3 insertions(+), 3 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/65/1226665/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1226665?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: I68167e3d8209221559285e49690f5b28feaab081
Gerrit-Change-Number: 1226665
Gerrit-PatchSet: 1
Gerrit-Owner: Suhas Athani <Suhas.Athani(a)ibm.com>