net: sctp: sctp_ssnmap: remove 'malloced' element from struct
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 16 Apr 2013 11:07:10 +0000 (11:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Apr 2013 18:13:02 +0000 (14:13 -0400)
commit542c2d832087aa78566be49aa4284779a0a687b3
treed364069534acbbaa42ed94003e170e853e0a3423
parent92cf1f23cc9390ea5c00e8185c1f7910c3d15452
net: sctp: sctp_ssnmap: remove 'malloced' element from struct

sctp_ssnmap_init() can only be called from sctp_ssnmap_new()
where malloced is always set to 1. Thus, when we call
sctp_ssnmap_free() the test for map->malloced evaluates always
to true.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/ssnmap.c