On Thu, Jul 16, 2015 at 12:22:40PM -0500, Tom Zanussi wrote:
> +     map->map = kcalloc(map->map_size, sizeof(struct tracing_map_entry),
> +                        GFP_KERNEL);

In a later email you state the max map size to be 128k, with a 16 byte
struct, that is 2m of memory for this allocation.

Isn't that a tad big for a kmalloc() ?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to