mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 11:11:27 +00:00
scst_dlm: Initialize reg->dlm_idx for PR information loaded from disk
This patch avoids that the following kernel warning appears while starting SCST after having loaded APTPL PR information: WARNING: scst/src/scst_dlm.c:461 scst_copy_to_dlm() Reported-by: <consus@gmx.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1363,9 +1363,15 @@ create_st_wq(const char *fmt, ...)
|
||||
static int scst_pr_dlm_init(struct scst_device *dev, const char *cl_dev_id)
|
||||
{
|
||||
struct scst_pr_dlm_data *pr_dlm;
|
||||
struct scst_dev_registrant *reg;
|
||||
int res = -ENOMEM;
|
||||
|
||||
compile_time_size_checks();
|
||||
|
||||
list_for_each_entry(reg, &dev->dev_registrants_list,
|
||||
dev_registrants_list_entry)
|
||||
scst_dlm_pr_init_reg(dev, reg);
|
||||
|
||||
pr_dlm = kzalloc(sizeof(*dev->pr_dlm), GFP_KERNEL);
|
||||
if (!pr_dlm)
|
||||
goto out;
|
||||
|
||||
Reference in New Issue
Block a user