lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 11 Nov 2011 13:22:34 +0800
From:	Niu <niu@...mcloud.com>
To:	adityakali@...gle.com
CC:	linux-ext4@...r.kernel.org
Subject: [PATCH] libquota: fix get_dq()

Hi, Aditya

This one more fix based on your new quota patches.

>From f3f4de997890a0c50d7c8143d9046dcab93cda5d Mon Sep 17 00:00:00 2001
From: Niu Yawei <niu@...mcloud.com>
Date: Fri, 11 Nov 2011 01:11:59 +0800
Subject: [PATCH] libquota: fix get_dq()

The dq_id should be set on newly created dqout.

Signed-off-by: Niu Yawei <niu@...mcloud.com>
---
 lib/quota/mkquota.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/quota/mkquota.c b/lib/quota/mkquota.c
index 832b135..ac7288c 100644
--- a/lib/quota/mkquota.c
+++ b/lib/quota/mkquota.c
@@ -292,6 +292,7 @@ static struct dquot *get_dq(dict_t *dict, __u32 key)
 		}
 		memset(dq, 0, sizeof(struct dquot));
 		dict_alloc_insert(dict, UINT_TO_VOIDPTR(key), dq);
+		dq->dq_id = key;
 	}
 	return dq;
 }
-- 
1.7.1



--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ