[PATCH 5.4 18/98] trace: fix potenial dangerous pointer