Please sign in to comment.
bluetooth: Fix an undefined behavior
The original creates a pointer to a compiler-generated temporary that is destroyed when the scope is exited. The pointer is stored in a structure defined in an enclosing scope and is invalid by the point it's used. The fix holds the structure in a variable with the same lifetime as the pointer. Signed-off-by: Findlay Feng <firstname.lastname@example.org>
- Loading branch information...