svn commit: r272805 - head/sys/cam
Garrett Cooper
yaneurabeya at gmail.com
Thu Oct 9 06:04:07 UTC 2014
Also...
> On Oct 8, 2014, at 22:53, Alexander Motin <mav at FreeBSD.org> wrote:
>
> Author: mav
> Date: Thu Oct 9 05:53:58 2014
> New Revision: 272805
> URL: https://svnweb.freebsd.org/changeset/base/272805
>
> Log:
> Use proper variable when looping through periphs with CAM_PERIPH_FREE.
>
> PR: 194256
> Submitted by: Scott M. Ferris <smferris at gmail.com>
> MFC after: 3 days
> Sponsored by: EMC/Isilon Storage Division
>
Reported by: Anton Rang <anton.rang AT Isilon DOT com>
> Modified:
> head/sys/cam/cam_xpt.c
>
> Modified: head/sys/cam/cam_xpt.c
> ==============================================================================
> --- head/sys/cam/cam_xpt.c Thu Oct 9 05:53:04 2014 (r272804)
> +++ head/sys/cam/cam_xpt.c Thu Oct 9 05:53:58 2014 (r272805)
> @@ -2195,7 +2195,7 @@ xptperiphtraverse(struct cam_ed *device,
> next_periph = SLIST_NEXT(periph, periph_links);
> while (next_periph != NULL &&
> (next_periph->flags & CAM_PERIPH_FREE) != 0)
> - next_periph = SLIST_NEXT(periph, periph_links);
> + next_periph = SLIST_NEXT(next_periph, periph_links);
> if (next_periph)
> next_periph->refcount++;
> mtx_unlock(&bus->eb_mtx);
> @@ -2269,7 +2269,7 @@ xptpdperiphtraverse(struct periph_driver
> next_periph = TAILQ_NEXT(periph, unit_links);
> while (next_periph != NULL &&
> (next_periph->flags & CAM_PERIPH_FREE) != 0)
> - next_periph = TAILQ_NEXT(periph, unit_links);
> + next_periph = TAILQ_NEXT(next_periph, unit_links);
> if (next_periph)
> next_periph->refcount++;
> xpt_unlock_buses();
>
More information about the svn-src-all
mailing list