[bug fix] [agw] [stateless mme] Fix null pointer reference for protocol config options in state conve… #2781
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Shruti Sanadhya ssanadhya@fb.com
Summary
With real UE, stateless MME is crashing while reading the protocol configuration options from Redis as there is no memory allocated in PDN context. While making this fix, also removed duplicate function for freeing pdn_context for each UE.
Test Plan
--- Set AGW to stateless mode
--- Attach UE to AGW
--- Restart MME service on AGW and confirm that there is no Segmentation fault while restarting
--- Detach UE and stop the MME service to verify there is no memory leak from this change