From: Tilman Schmidt Date: Sat, 11 Oct 2014 11:46:30 +0000 (+0200) Subject: isdn/gigaset: fix non-heap pointer deallocation X-Git-Tag: fixes-against-v3.18-rc2~61^2~49^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8324f94202af7dc688576259803a2ef9a98d655;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed