mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge branch 'merge' of git://git.secretlab.ca/git/linux-2.6
* 'merge' of git://git.secretlab.ca/git/linux-2.6: spi: spidev_test gives error upon 1-byte transfer omap2_mcspi: small fixes of output data format omap2_mcspi: Flush posted writes spi: spi_device memory should be released instead of device. spi: release device claimed by bus_find_device_by_name of: check for IS_ERR() serial/mpc52xx_uart: Drop outdated comments gpio: potential null dereference
This commit is contained in:
commit
8f2adb7cab
6 changed files with 12 additions and 41 deletions
|
|
@ -416,7 +416,8 @@ static int gpio_setup_irq(struct gpio_desc *desc, struct device *dev,
|
|||
return 0;
|
||||
|
||||
free_sd:
|
||||
sysfs_put(pdesc->value_sd);
|
||||
if (pdesc)
|
||||
sysfs_put(pdesc->value_sd);
|
||||
free_id:
|
||||
idr_remove(&pdesc_idr, id);
|
||||
desc->flags &= GPIO_FLAGS_MASK;
|
||||
|
|
|
|||
Loading…
Reference in a new issue