quota: Fix possible GPF due to uninitialised pointers
Orabug:
23331080
[ Upstream commit
ab73ef46398e2c0159f3a71de834586422d2a44a ]
When dqget() in __dquot_initialize() fails e.g. due to IO error,
__dquot_initialize() will pass an array of uninitialized pointers to
dqput_all() and thus can lead to deference of random data. Fix the
problem by properly initializing the array.
CC: stable@vger.kernel.org
Signed-off-by: Nikolay Borisov <kernel@kyup.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit
ab1cc52b3f62f2445c60cbe390d26c50ebc0f3bd)
Signed-off-by: Dan Duval <dan.duval@oracle.com>