Patch "rtla: Fix uninitialized variable found" has been added to the 6.5-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    rtla: Fix uninitialized variable found

to the 6.5-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rtla-fix-uninitialized-variable-found.patch
and it can be found in the queue-6.5 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 676d98ca7c5ea11e7fb36492f7708c5f784b9465
Author: Colin Ian King <colin.i.king@xxxxxxxxx>
Date:   Thu Jul 27 16:01:17 2023 +0100

    rtla: Fix uninitialized variable found
    
    [ Upstream commit 696444a544ecd6d62c1edc89516b376cefb28929 ]
    
    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@xxxxxxxxx/
    
    Fixes: a957cbc02531 ("rtla: Add -C cgroup support")
    Signed-off-by: Colin Ian King <colin.i.king@xxxxxxxxx>
    Signed-off-by: Daniel Bristot de Oliveira <bristot@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/tracing/rtla/src/utils.c b/tools/tracing/rtla/src/utils.c
index 623a38908ed5b..c769d7b3842c0 100644
--- a/tools/tracing/rtla/src/utils.c
+++ b/tools/tracing/rtla/src/utils.c
@@ -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");



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux