Thread (21 messages) 21 messages, 5 authors, 2013-04-23

Re: [PATCH 1/2] genetlink: trigger BUG_ON if a group name is too long

From: Yinghai Lu <yinghai@kernel.org>
Date: 2013-03-20 21:01:09

On Wed, Mar 20, 2013 at 9:07 AM, David Miller [off-list ref] wrote:
From: Masatake YAMATO <redacted>
Date: Tue, 19 Mar 2013 20:47:27 +0900
quoted
Trigger BUG_ON if a group name is longer than GENL_NAMSIZ.

Signed-off-by: Masatake YAMATO <redacted>
Applied, thanks.
catch one in

drivers/thermal/thermal_sys.c::genetlink_init

        result = genl_register_mc_group(&thermal_event_genl_family,
                                        &thermal_event_mcgrp);

and

static struct genl_multicast_group thermal_event_mcgrp = {
        .name = THERMAL_GENL_MCAST_GROUP_NAME,
};

#define THERMAL_GENL_MCAST_GROUP_NAME           "thermal_mc_group"

that string len 16.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help