summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/capi/kcapi.c
diff options
context:
space:
mode:
authorTilman Schmidt <tilman@imap.cc>2014-10-11 13:46:30 +0200
committerDavid S. Miller <davem@davemloft.net>2014-10-14 15:05:34 -0400
commitb8324f94202af7dc688576259803a2ef9a98d655 (patch)
tree05043b6668f823104c3f5eb29451a3b4f0941efd /drivers/isdn/capi/kcapi.c
parent846ac30135e7c5e03b487c16c87ccb1ab020a01f (diff)
isdn/gigaset: fix non-heap pointer deallocation
at_state structures may be allocated individually or as part of a cardstate or bc_state structure. The disconnect() function handled both cases, creating a risk that it might try to deallocate an at_state structure that had not been allocated individually. Fix by splitting disconnect() into two variants handling cases with and without an associated B channel separately, and adding an explicit check. Spotted with Coverity. Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/capi/kcapi.c')
0 files changed, 0 insertions, 0 deletions