Date: Wed, 29 May 2013 04:09:32 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r251092 - stable/9/sys/dev/mps Message-ID: <201305290409.r4T49Wpa093758@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Wed May 29 04:09:32 2013 New Revision: 251092 URL: http://svnweb.freebsd.org/changeset/base/251092 Log: MFC r250900: Fix NULL-dereference kernel panic in case of mps_attach() failure. Modified: stable/9/sys/dev/mps/mps_user.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/dev/ (props changed) Modified: stable/9/sys/dev/mps/mps_user.c ============================================================================== --- stable/9/sys/dev/mps/mps_user.c Wed May 29 01:54:10 2013 (r251091) +++ stable/9/sys/dev/mps/mps_user.c Wed May 29 04:09:32 2013 (r251092) @@ -208,8 +208,8 @@ mps_detach_user(struct mps_softc *sc) { /* XXX: do a purge of pending requests? */ - destroy_dev(sc->mps_cdev); - + if (sc->mps_cdev != NULL) + destroy_dev(sc->mps_cdev); } static int
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305290409.r4T49Wpa093758>