File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 7
7
#include <linux/bitfield.h>
8
8
#include <linux/bitmap.h>
9
9
#include <linux/bitops.h>
10
+ #include <linux/cleanup.h>
10
11
#include <linux/device.h>
11
12
#include <linux/io.h>
12
13
#include <linux/kernel.h>
@@ -1294,16 +1295,13 @@ static int qcom_llcc_probe(struct platform_device *pdev)
1294
1295
1295
1296
/* Initialize rest of LLCC bank regmaps */
1296
1297
for (i = 1 ; i < num_banks ; i ++ ) {
1297
- char * base = kasprintf (GFP_KERNEL , "llcc%d_base" , i );
1298
+ char * base __free ( kfree ) = kasprintf (GFP_KERNEL , "llcc%d_base" , i );
1298
1299
1299
1300
drv_data -> regmaps [i ] = qcom_llcc_init_mmio (pdev , i , base );
1300
1301
if (IS_ERR (drv_data -> regmaps [i ])) {
1301
1302
ret = PTR_ERR (drv_data -> regmaps [i ]);
1302
- kfree (base );
1303
1303
goto err ;
1304
1304
}
1305
-
1306
- kfree (base );
1307
1305
}
1308
1306
1309
1307
drv_data -> bcast_regmap = qcom_llcc_init_mmio (pdev , i , "llcc_broadcast_base" );
You can’t perform that action at this time.
0 commit comments