OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Kenneth R Westerback (krwcvs.openbsd.org)
Date: Sun Aug 28 2005 - 19:41:44 CDT


CVSROOT: /cvs
Module name: src
Changes by: krwcvs.openbsd.org 2005/08/28 18:41:44

Modified files:
        sys/scsi : scsi_base.c

Log message:
If a buffer larger than the max allowed is offered to scsi_mode_sense()
or scsi_mode_sense_big(), use as much of it as is allowed. Don't justi
mask off the higher bits and possibly leave yourself with 0 space.

Fixes problem aoyama found on luna88k tape drive.

ok deraadt.