Patch "quota: avoid missing put_quota_format when DQUOT_SUSPENDED is passed" 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

    quota: avoid missing put_quota_format when DQUOT_SUSPENDED is passed

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:
     quota-avoid-missing-put_quota_format-when-dquot_susp.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 e09438ae0125094cb4b0a1144738f17b49e8f445
Author: Kemeng Shi <shikemeng@xxxxxxxxxxxxxxx>
Date:   Mon Jul 15 21:05:31 2024 +0800

    quota: avoid missing put_quota_format when DQUOT_SUSPENDED is passed
    
    [ Upstream commit d16a5f852025be546b6e4ceef15899db3490f4d7 ]
    
    Avoid missing put_quota_format when DQUOT_SUSPENDED is passed to
    dquot_load_quota_sb.
    
    Link: https://patch.msgid.link/20240715130534.2112678-2-shikemeng@xxxxxxxxxxxxxxx
    Signed-off-by: Kemeng Shi <shikemeng@xxxxxxxxxxxxxxx>
    Fixes: d44c57663723 ("quota: Remove BUG_ON in dquot_load_quota_sb()")
    Reviewed-by: Joseph Qi <joseph.qi@xxxxxxxxxxxxxxxxx>
    Signed-off-by: Jan Kara <jack@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c
index 7ae885e6d5d73..d533b58e21c28 100644
--- a/fs/quota/dquot.c
+++ b/fs/quota/dquot.c
@@ -2406,7 +2406,7 @@ static int vfs_setup_quota_inode(struct inode *inode, int type)
 int dquot_load_quota_sb(struct super_block *sb, int type, int format_id,
 	unsigned int flags)
 {
-	struct quota_format_type *fmt = find_quota_format(format_id);
+	struct quota_format_type *fmt;
 	struct quota_info *dqopt = sb_dqopt(sb);
 	int error;
 
@@ -2416,6 +2416,7 @@ int dquot_load_quota_sb(struct super_block *sb, int type, int format_id,
 	if (WARN_ON_ONCE(flags & DQUOT_SUSPENDED))
 		return -EINVAL;
 
+	fmt = find_quota_format(format_id);
 	if (!fmt)
 		return -ESRCH;
 	if (!sb->dq_op || !sb->s_qcop ||




[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