]> git.baikalelectronics.ru Git - kernel.git/commit
target/configfs: allocate only 6 slots for dev_cg->default_groups
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 28 Nov 2012 01:49:44 +0000 (17:49 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 28 Nov 2012 06:49:23 +0000 (22:49 -0800)
commit3ab85a2fc1855bbd4ace346c7c6868d6ed8f1af6
treeac086820e4140188a84468d8cd34133b6221c268
parent974681a53e5a783a4529ddb5aa493fb5d7cda4f0
target/configfs: allocate only 6 slots for dev_cg->default_groups

Only slots 0-5 are used so 6 slots should be enough. I don't see anyone
writting anything else than NULL into ->default_groups[5] so a "late"
initialisation should not happen here.

(nab: Fix up minor apply breakage in for-next)

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_configfs.c