Date: Tue, 29 Nov 2016 12:58:28 +0000 (UTC) From: Kashyap D Desai <kadesai@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309288 - head/sys/dev/mrsas Message-ID: <201611291258.uATCwSuV053621@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kadesai Date: Tue Nov 29 12:58:28 2016 New Revision: 309288 URL: https://svnweb.freebsd.org/changeset/base/309288 Log: Clean up reference to AEN command if abort AEN is succesful as the command is aborted. Did the same by setting sc->aen_cmd = NULL when aborting AEN is successful. Submitted by: Sumit Saxena <sumit.saxena@broadcom.com> Reviewed by: Kashyap Desai <Kashyap.Desai@broadcom.com> MFC after: 3 days Sponsored by: Broadcom Limited/AVAGO Technologies Modified: head/sys/dev/mrsas/mrsas.c Modified: head/sys/dev/mrsas/mrsas.c ============================================================================== --- head/sys/dev/mrsas/mrsas.c Tue Nov 29 12:56:53 2016 (r309287) +++ head/sys/dev/mrsas/mrsas.c Tue Nov 29 12:58:28 2016 (r309288) @@ -675,7 +675,8 @@ mrsas_register_aen(struct mrsas_softc *s if (ret_val) { printf("mrsas: Failed to abort previous AEN command\n"); return ret_val; - } + } else + sc->aen_cmd = NULL; } } cmd = mrsas_get_mfi_cmd(sc);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611291258.uATCwSuV053621>