firewire: cdev: fix potential leak of kernel stack due to uninitialized value
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 12 May 2022 11:20:37 +0000 (20:20 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 17 Jun 2022 08:43:11 +0000 (10:43 +0200)
commitdda8ad0aa8af937feb5113952fb7886c74315010
tree7fd7724e1a9ee71f27362abc956b93d9ad64f441
parent56ec3e755bd1041d35bdec020a99b327697ee470
firewire: cdev: fix potential leak of kernel stack due to uninitialized value

Recent change brings potential leak of value on kernel stack to userspace
due to uninitialized value.

This commit fixes the bug.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: baa914cd81f5 ("firewire: add kernel API to access CYCLE_TIME register")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20220512112037.103142-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
drivers/firewire/core-cdev.c