[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6b8e8d4b-3c82-af57-1bad-b143654a8d70@users.sourceforge.net>
Date: Fri, 19 Aug 2016 23:12:05 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-mmc@...r.kernel.org, Adrian Hunter <adrian.hunter@...el.com>,
Grant Grundler <grundler@...omium.org>,
Jens Axboe <axboe@...com>, Jon Hunter <jonathanh@...dia.com>,
Mike Christie <mchristi@...hat.com>,
Shawn Lin <shawn.lin@...k-chips.com>,
Ulf Hansson <ulf.hansson@...aro.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org,
Julia Lawall <julia.lawall@...6.fr>
Subject: [PATCH 2/2] mmc-block: Rename jump labels in
mmc_blk_ioctl_copy_from_user()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Fri, 19 Aug 2016 22:52:50 +0200
Adjust jump targets according to the Linux coding style convention.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/mmc/card/block.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 6ce9492..0d83c56 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -346,13 +346,13 @@ static struct mmc_blk_ioc_data *mmc_blk_ioctl_copy_from_user(
if (copy_from_user(&idata->ic, user, sizeof(idata->ic))) {
idata = ERR_PTR(-EFAULT);
- goto idata_err;
+ goto free_idata;
}
idata->buf_bytes = (u64) idata->ic.blksz * idata->ic.blocks;
if (idata->buf_bytes > MMC_IOC_MAX_BYTES) {
idata = ERR_PTR(-EOVERFLOW);
- goto idata_err;
+ goto free_idata;
}
if (!idata->buf_bytes) {
@@ -365,11 +365,11 @@ static struct mmc_blk_ioc_data *mmc_blk_ioctl_copy_from_user(
idata->buf_bytes);
if (IS_ERR(idata->buf)) {
idata = (void *) idata->buf;
- goto idata_err;
+ goto free_idata;
}
return idata;
-idata_err:
+free_idata:
kfree(idata);
out:
return idata;
--
2.9.3
Powered by blists - more mailing lists