]> git.ipfire.org Git - thirdparty/linux.git/commit
soc: apple: rtkit: Cut syslog messages after the first '\0'
authorJanne Grunau <j@jannau.net>
Wed, 26 Feb 2025 19:00:06 +0000 (19:00 +0000)
committerSven Peter <sven@svenpeter.dev>
Fri, 28 Feb 2025 21:36:45 +0000 (21:36 +0000)
commite210227f0259d2666cc41b28ed1b7b0b0a99ed4d
tree767a682c085a9aed3d4e6838f0d8bb4604d4f95b
parent22af2fac88fa5dbc310bfe7d0b66d4de3ac47305
soc: apple: rtkit: Cut syslog messages after the first '\0'

Certain messages from DCP contain NUL bytes in the random data after the
NUL terminated syslog message. Since the syslog message ends with '\n'
this results in a dev_info() message terminated with two newlines and an
empty printed line in the kernel log.

Signed-off-by: Janne Grunau <j@jannau.net>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Link: https://lore.kernel.org/r/20250226-apple-soc-misc-v2-4-c3ec37f9021b@svenpeter.dev
Signed-off-by: Sven Peter <sven@svenpeter.dev>
drivers/soc/apple/rtkit.c