[PATCH 5.4 41/92] coresight: etm4x: Fix input validation for sysfs.