Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'staging-3.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging

Pull staging fixes from Greg KH:
"Here are two tiny staging tree fixes (well, one is for an iio driver,
but those updates come through the staging tree due to dependancies)

One fixes a problem with an IIO driver, and the other fixes a bug in
the comedi driver core"

* tag 'staging-3.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
staging: comedi: bug-fix NULL pointer dereference on failed attach
iio: adjd_s311: Fix non-scan mode data read

+3 -2
+2 -1
drivers/iio/light/adjd_s311.c
··· 232 233 switch (mask) { 234 case IIO_CHAN_INFO_RAW: 235 - ret = adjd_s311_read_data(indio_dev, chan->address, val); 236 if (ret < 0) 237 return ret; 238 return IIO_VAL_INT;
··· 232 233 switch (mask) { 234 case IIO_CHAN_INFO_RAW: 235 + ret = adjd_s311_read_data(indio_dev, 236 + ADJD_S311_DATA_REG(chan->address), val); 237 if (ret < 0) 238 return ret; 239 return IIO_VAL_INT;
+1 -1
drivers/staging/comedi/drivers.c
··· 482 ret = comedi_device_postconfig(dev); 483 if (ret < 0) { 484 comedi_device_detach(dev); 485 - module_put(dev->driver->module); 486 } 487 /* On success, the driver module count has been incremented. */ 488 return ret;
··· 482 ret = comedi_device_postconfig(dev); 483 if (ret < 0) { 484 comedi_device_detach(dev); 485 + module_put(driv->module); 486 } 487 /* On success, the driver module count has been incremented. */ 488 return ret;