Patch "um: ubd: Initialize ubd's disk pointer in ubd_add" has been added to the 6.11-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

    um: ubd: Initialize ubd's disk pointer in ubd_add

to the 6.11-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:
     um-ubd-initialize-ubd-s-disk-pointer-in-ubd_add.patch
and it can be found in the queue-6.11 subdirectory.

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



commit c0306aab8cc56b4ef282a7c33ac30f38c0c3a01c
Author: Tiwei Bie <tiwei.btw@xxxxxxxxxxxx>
Date:   Tue Nov 5 00:32:00 2024 +0800

    um: ubd: Initialize ubd's disk pointer in ubd_add
    
    [ Upstream commit df700802abcac3c7c4a4ced099aa42b9a144eea8 ]
    
    Currently, the initialization of the disk pointer in the ubd structure
    is missing. It should be initialized with the allocated gendisk pointer
    in ubd_add().
    
    Fixes: 32621ad7a7ea ("ubd: remove the ubd_gendisk array")
    Signed-off-by: Tiwei Bie <tiwei.btw@xxxxxxxxxxxx>
    Acked-By: Anton Ivanov <anton.ivanov@xxxxxxxxxxxxxxxxxx>
    Link: https://patch.msgid.link/20241104163203.435515-2-tiwei.btw@xxxxxxxxxxxx
    Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
index 119df76627002..2bfb17373244b 100644
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -898,6 +898,8 @@ static int ubd_add(int n, char **error_out)
 	if (err)
 		goto out_cleanup_disk;
 
+	ubd_dev->disk = disk;
+
 	return 0;
 
 out_cleanup_disk:




[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