From: Frank Mori Hess Date: Thu, 6 Sep 2001 19:47:06 +0000 (+0000) Subject: fixed some typos causing null dereference X-Git-Tag: r0_7_61~113 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e4109128558da152731db5cae0c6834fe440f589;p=comedi.git fixed some typos causing null dereference --- 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];