From: Kamal Mostafa <kamal@canonical.com>
To: linux-kernel@vger.kernel.org, stable@vger.kernel.org,
kernel-team@lists.ubuntu.com
Cc: Andrew Victor <linux@maxim.org.za>,
Nicolas Ferre <nicolas.ferre@atmel.com>,
Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>,
Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
Tejun Heo <tj@kernel.org>, Kamal Mostafa <kamal@canonical.com>
Subject: [PATCH 3.8 024/121] pata_at91: fix ata_host_activate() failure handling
Date: Tue, 17 Jun 2014 09:13:37 -0700 [thread overview]
Message-ID: <1403021714-16320-25-git-send-email-kamal@canonical.com> (raw)
In-Reply-To: <1403021714-16320-1-git-send-email-kamal@canonical.com>
3.8.13.24 -stable review patch. If anyone has any objections, please let me know.
------------------
From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
commit 27aa64b9d1bd0d23fd692c91763a48309b694311 upstream.
Add missing clk_put() call to ata_host_activate() failure path.
Sergei says,
"Hm, I have once fixed that (see that *if* (!ret)) but looks like a
later commit 477c87e90853d136b188c50c0e4a93d01cad872e (ARM:
at91/pata: use gpio_is_valid to check the gpio) broke it again. :-(
Would be good if the changelog did mention that..."
Cc: Andrew Victor <linux@maxim.org.za>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
drivers/ata/pata_at91.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/ata/pata_at91.c b/drivers/ata/pata_at91.c
index 033f3f4..fa28859 100644
--- a/drivers/ata/pata_at91.c
+++ b/drivers/ata/pata_at91.c
@@ -408,12 +408,13 @@ static int pata_at91_probe(struct platform_device *pdev)
host->private_data = info;
- return ata_host_activate(host, gpio_is_valid(irq) ? gpio_to_irq(irq) : 0,
- gpio_is_valid(irq) ? ata_sff_interrupt : NULL,
- irq_flags, &pata_at91_sht);
+ ret = ata_host_activate(host, gpio_is_valid(irq) ? gpio_to_irq(irq) : 0,
+ gpio_is_valid(irq) ? ata_sff_interrupt : NULL,
+ irq_flags, &pata_at91_sht);
+ if (ret)
+ goto err_put;
- if (!ret)
- return 0;
+ return 0;
err_put:
clk_put(info->mck);
--
1.9.1
next prev parent reply other threads:[~2014-06-17 16:16 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-17 16:13 [3.8.y.z extended stable] Linux 3.8.13.24 stable review Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 001/121] ACPI / EC: Clear stale EC events on Samsung systems Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 002/121] ACPI / EC: Process rather than discard events in acpi_ec_clear Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 003/121] mac80211: fix software remain-on-channel implementation Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 004/121] mac80211: exclude AP_VLAN interfaces from tx power calculation Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 005/121] parisc: fix epoll_pwait syscall on compat kernel Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 006/121] ALSA: hda/realtek - Add support of ALC288 codec Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 007/121] user namespace: fix incorrect memory barriers Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 008/121] mlx4_en: don't use napi_synchronize inside mlx4_en_netpoll Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 009/121] mei: ignore client writing state during cb completion Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 010/121] staging: r8712u: Fix case where ethtype was never obtained and always be checked against 0 Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 011/121] USB: serial: ftdi_sio: add id for Brainboxes serial cards Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 012/121] Revert "USB: serial: add usbid for dell wwan card to sierra.c" Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 013/121] usb: option driver, add support for Telit UE910v2 Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 014/121] USB: cp210x: Add 8281 (Nanotec Plug & Drive) Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 015/121] USB: pl2303: add ids for Hewlett-Packard HP POS pole displays Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 016/121] USB: usb_wwan: fix handling of missing bulk endpoints Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 017/121] USB: fix crash during hotplug of PCI USB controller card Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 018/121] USB: cdc-acm: Remove Motorola/Telit H24 serial interfaces from ACM driver Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 019/121] drm/radeon: memory leak on bo reservation failure. v2 Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 020/121] drm/radeon/si: make sure mc ucode is loaded before checking the size Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 021/121] mm/hugetlb.c: add cond_resched_lock() in return_unused_surplus_pages() Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 022/121] mm: use paravirt friendly ops for NUMA hinting ptes Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 023/121] iio: querying buffer scan_mask should return 0/1 Kamal Mostafa
2014-06-17 16:13 ` Kamal Mostafa [this message]
2014-06-17 16:13 ` [PATCH 3.8 025/121] ext4: note the error in ext4_end_bio() Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 026/121] ext4: fix jbd2 warning under heavy xattr load Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 027/121] ext4: use i_size_read in ext4_unaligned_aio() Kamal Mostafa
2014-06-17 16:13 ` [PATCH 3.8 028/121] locks: allow __break_lease to sleep even when break_time is 0 Kamal Mostafa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1403021714-16320-25-git-send-email-kamal@canonical.com \
--to=kamal@canonical.com \
--cc=b.zolnierkie@samsung.com \
--cc=kernel-team@lists.ubuntu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@maxim.org.za \
--cc=nicolas.ferre@atmel.com \
--cc=plagnioj@jcrosoft.com \
--cc=sergei.shtylyov@cogentembedded.com \
--cc=stable@vger.kernel.org \
--cc=tj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®