Merge "msm: ipa: fix O-4 allocation for querying stats"
Este commit está contenido en:

cometido por
Gerrit - the friendly Code Review server

commit
26b2501fb9
@@ -1161,7 +1161,7 @@ int ipa_get_teth_stats(void)
|
||||
goto destroy_imm;
|
||||
}
|
||||
|
||||
stats_all = kzalloc(sizeof(*stats_all), GFP_KERNEL);
|
||||
stats_all = vmalloc(sizeof(*stats_all));
|
||||
if (!stats_all) {
|
||||
IPADBG("failed to alloc memory\n");
|
||||
ret = -ENOMEM;
|
||||
@@ -1248,7 +1248,7 @@ int ipa_get_teth_stats(void)
|
||||
|
||||
ret = 0;
|
||||
free_stats:
|
||||
kfree(stats_all);
|
||||
vfree(stats_all);
|
||||
stats = NULL;
|
||||
destroy_imm:
|
||||
for (i = 0; i < num_cmd; i++)
|
||||
|
Referencia en una nueva incidencia
Block a user