Date: Tue, 24 Jul 2012 13:32:49 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r238740 - head/sys/cam/scsi Message-ID: <201207241332.q6ODWnn5034913@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Tue Jul 24 13:32:49 2012 New Revision: 238740 URL: http://svn.freebsd.org/changeset/base/238740 Log: Fix off by one error in ses_enc_desc_last_byte(). Modified: head/sys/cam/scsi/scsi_ses.h Modified: head/sys/cam/scsi/scsi_ses.h ============================================================================== --- head/sys/cam/scsi/scsi_ses.h Tue Jul 24 13:08:43 2012 (r238739) +++ head/sys/cam/scsi/scsi_ses.h Tue Jul 24 13:32:49 2012 (r238740) @@ -117,7 +117,7 @@ struct ses_enc_desc { static inline uint8_t * ses_enc_desc_last_byte(struct ses_enc_desc *encdesc) { - return (&encdesc->length + encdesc->length + 1); + return (&encdesc->length + encdesc->length); } static inline struct ses_enc_desc *
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207241332.q6ODWnn5034913>