summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_hal/ar5212/ar5212_power.c
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2015-12-02 21:48:34 +0000
committerrmacklem <rmacklem@FreeBSD.org>2015-12-02 21:48:34 +0000
commit68e44b1d7045a500ada4760ebd096f99e1544d2e (patch)
tree86bc954999cbb61df412a1e4c59dd1eff688796e /sys/dev/ath/ath_hal/ar5212/ar5212_power.c
parentccce6feaa419fbc5fc1c0f617f6ad974b07a58c4 (diff)
downloadFreeBSD-src-68e44b1d7045a500ada4760ebd096f99e1544d2e.zip
FreeBSD-src-68e44b1d7045a500ada4760ebd096f99e1544d2e.tar.gz
MFC: r291035
The problem report was for a crash that happened when smbfs was trying to do a mount. Given the backtrace, it appears that the crash occurred when smb_vc_create() failed and then called smb_vc_put() with vcp->vc_iod == NULL. smb_vc_put() subsequently called smb_vc_disconnect() with vcp->vc_iod == NULL, causing the crash. This patch adds a check for vcp->vc_iod != NULL in smb_vc_disconnect() to avoid the crash. It also fixes the case in smb_vc_create() where kproc_create() fails so that it destroys the mutexes and sets vcp->vc_iod == NULL before free()'ing the iod structure.
Diffstat (limited to 'sys/dev/ath/ath_hal/ar5212/ar5212_power.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud