From e4109128558da152731db5cae0c6834fe440f589 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Thu, 6 Sep 2001 19:47:06 +0000 Subject: [PATCH] fixed some typos causing null dereference --- comedi/drivers/das16.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/das16.c b/comedi/drivers/das16.c index ce633750..71f66c75 100644 --- a/comedi/drivers/das16.c +++ b/comedi/drivers/das16.c @@ -1335,7 +1335,7 @@ static int das16_attach(comedi_device *dev, comedi_devconfig *it) devpriv->user_ai_range_table = kmalloc(sizeof(comedi_lrange) + sizeof(comedi_krange), GFP_KERNEL); // initialize ai range - devpriv->user_ao_range_table->length = 1; + devpriv->user_ai_range_table->length = 1; user_ai_range = devpriv->user_ai_range_table->range; user_ai_range->min = it->options[4]; user_ai_range->max = it->options[5]; @@ -1348,7 +1348,7 @@ static int das16_attach(comedi_device *dev, comedi_devconfig *it) devpriv->user_ao_range_table = kmalloc(sizeof(comedi_lrange) + sizeof(comedi_krange), GFP_KERNEL); // initialize ao range - devpriv->user_ai_range_table->length = 1; + devpriv->user_ao_range_table->length = 1; user_ao_range = devpriv->user_ao_range_table->range; user_ao_range->min = it->options[6]; user_ao_range->max = it->options[7]; -- 2.26.2