Commit 3834a75
mmc: omap: Fix memory leak in mmc_omap_new_slot
Add err_free_host label to properly pair mmc_alloc_host() with
mmc_free_host() in GPIO error paths. The allocated host memory was
leaked when GPIO lookups failed.
Fixes: e519f0b ("ARM/mmc: Convert old mmci-omap to GPIO descriptors")
Signed-off-by: Miaoqian Lin <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>1 parent 4676741 commit 3834a75
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1272 | 1272 | | |
1273 | 1273 | | |
1274 | 1274 | | |
1275 | | - | |
1276 | | - | |
| 1275 | + | |
| 1276 | + | |
1277 | 1277 | | |
| 1278 | + | |
| 1279 | + | |
1278 | 1280 | | |
1279 | 1281 | | |
1280 | | - | |
1281 | | - | |
| 1282 | + | |
| 1283 | + | |
1282 | 1284 | | |
| 1285 | + | |
| 1286 | + | |
1283 | 1287 | | |
1284 | 1288 | | |
1285 | | - | |
1286 | | - | |
| 1289 | + | |
| 1290 | + | |
1287 | 1291 | | |
| 1292 | + | |
| 1293 | + | |
1288 | 1294 | | |
1289 | 1295 | | |
1290 | 1296 | | |
| |||
1344 | 1350 | | |
1345 | 1351 | | |
1346 | 1352 | | |
| 1353 | + | |
1347 | 1354 | | |
1348 | 1355 | | |
1349 | 1356 | | |
| |||
0 commit comments