aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorThomas Quinot <thomas@FreeBSD.org>2003-08-28 03:56:04 +0000
committerThomas Quinot <thomas@FreeBSD.org>2003-08-28 03:56:04 +0000
commitc8fb1af26cd65cad3b759a95fa2915af2b940c48 (patch)
tree0809eb4c9a29a293a02478d2a83b15505a2027e8 /sys/dev
parentb5b965a52916bbdab11a2e4a7a9584b2ab172862 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ata/atapi-cam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-cam.c b/sys/dev/ata/atapi-cam.c
index 34811f7233246..09740870420e8 100644
--- a/sys/dev/ata/atapi-cam.c
+++ b/sys/dev/ata/atapi-cam.c
@@ -465,9 +465,10 @@ atapi_action(struct cam_sim *sim, union ccb *ccb)
if ((ccb_h->flags & CAM_DIR_MASK) == CAM_DIR_IN && (len & 1)) {
/* ATA always transfers an even number of bytes */
if (!(buf = hcb->dxfer_alloc = malloc(++len, M_ATACAM,
- M_NOWAIT | M_ZERO)))
+ M_NOWAIT | M_ZERO))) {
printf("cannot allocate ATAPI/CAM buffer\n");
goto action_oom;
+ }
}
request->device = dev;
request->driver = hcb;