Skip to content

solidigm-telemetry: check return value of sldm_telemetry_structure_parse - #3781

Open
sahmed-ibm wants to merge 1 commit into
linux-nvme:masterfrom
sahmed-ibm:fix-data-area-unchecked-return-value
Open

solidigm-telemetry: check return value of sldm_telemetry_structure_parse#3781
sahmed-ibm wants to merge 1 commit into
linux-nvme:masterfrom
sahmed-ibm:fix-data-area-unchecked-return-value

Conversation

@sahmed-ibm

Copy link
Copy Markdown
Contributor

The return value of sldm_telemetry_structure_parse() was not being checked before proceeding to use the parsed_struct object for NLOG and side trace processing. If parsing fails, the incomplete structure data would lead to invalid results in downstream operations.

Check the return value and skip to the next iteration if parsing fails.

The return value of sldm_telemetry_structure_parse() was not being checked
before proceeding to use the parsed_struct object for NLOG and side trace
processing. If parsing fails, the incomplete structure data would lead to
invalid results in downstream operations.

Check the return value and skip to the next iteration if parsing fails.

Signed-off-by: Sarah Ahmed <sarah.ahmed@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant