diff options
| author | 2008-12-03 12:54:45 +0100 | |
|---|---|---|
| committer | 2008-12-03 12:54:45 +0100 | |
| commit | c36910c147fd7b129a8f1269c76b9767c99de5cd (patch) | |
| tree | 29403cd341b62581718f6b34944271980fb133e6 /drivers/spi/spidev.c | |
| parent | x86: fix broken flushing in GART nofullflush path (diff) | |
| parent | AMD IOMMU: fix possible race while accessing iommu->need_sync (diff) | |
| download | linux-dev-c36910c147fd7b129a8f1269c76b9767c99de5cd.tar.xz linux-dev-c36910c147fd7b129a8f1269c76b9767c99de5cd.zip | |
Merge branch 'iommu-fixes-2.6.28' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu into x86/urgent
Diffstat (limited to 'drivers/spi/spidev.c')
| -rw-r--r-- | drivers/spi/spidev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 89a43755a453..5d869c4d3eb2 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -597,7 +597,9 @@ static int spidev_probe(struct spi_device *spi) } mutex_unlock(&device_list_lock); - if (status != 0) + if (status == 0) + spi_set_drvdata(spi, spidev); + else kfree(spidev); return status; |
