mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00:00
rtla: Fix uninitialized variable found
[ Upstream commit696444a544
] Variable found is not being initialized, in the case where the desired mount is not found the variable contains garbage. Fix this by initializing it to zero. Link: https://lore.kernel.org/all/20230727150117.627730-1-colin.i.king@gmail.com/ Fixes:a957cbc025
("rtla: Add -C cgroup support") Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b29b09d5e2
commit
58d47044f6
1 changed files with 1 additions and 1 deletions
|
@ -538,7 +538,7 @@ static const int find_mount(const char *fs, char *mp, int sizeof_mp)
|
|||
{
|
||||
char mount_point[MAX_PATH];
|
||||
char type[100];
|
||||
int found;
|
||||
int found = 0;
|
||||
FILE *fp;
|
||||
|
||||
fp = fopen("/proc/mounts", "r");
|
||||
|
|
Loading…
Reference in a new issue