mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
thermal: shorten too long mcast group name
[ Upstream commits73214f5d9f
andf1e79e2080
, the latter adds an assertion to genetlink to prevent this from happening again in the future. ] The original name is too long. Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a83417946d
commit
b9f3bf1d0f
2 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,7 @@ struct thermal_zone_device {
|
|||
/* Adding event notification support elements */
|
||||
#define THERMAL_GENL_FAMILY_NAME "thermal_event"
|
||||
#define THERMAL_GENL_VERSION 0x01
|
||||
#define THERMAL_GENL_MCAST_GROUP_NAME "thermal_mc_group"
|
||||
#define THERMAL_GENL_MCAST_GROUP_NAME "thermal_mc_grp"
|
||||
|
||||
enum events {
|
||||
THERMAL_AUX0,
|
||||
|
|
|
@ -142,6 +142,7 @@ int genl_register_mc_group(struct genl_family *family,
|
|||
int err = 0;
|
||||
|
||||
BUG_ON(grp->name[0] == '\0');
|
||||
BUG_ON(memchr(grp->name, '\0', GENL_NAMSIZ) == NULL);
|
||||
|
||||
genl_lock();
|
||||
|
||||
|
|
Loading…
Reference in a new issue