--- zzzz-none-000/linux-2.6.19.2/drivers/scsi/scsi_lib.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5505/linux-2.6.19.2/drivers/scsi/scsi_lib.c 2008-04-10 12:21:44.000000000 +0000 @@ -44,7 +44,7 @@ #error SCSI_MAX_PHYS_SEGMENTS is too small #endif -#define SP(x) { x, "sgpool-" #x } +#define SP(x) { x, "sgpool-" #x, NULL, NULL } static struct scsi_host_sg_pool scsi_sg_pools[] = { SP(8), SP(16), @@ -411,7 +411,6 @@ goto free_req; req->cmd_len = cmd_len; - memset(req->cmd, 0, BLK_MAX_CDB); /* ATAPI hates garbage after CDB */ memcpy(req->cmd, cmd, req->cmd_len); req->sense = sioc->sense; req->sense_len = 0; @@ -1086,7 +1085,7 @@ { struct request *req = cmd->request; - BUILD_BUG_ON(sizeof(req->cmd) > sizeof(cmd->cmnd)); + BUG_ON(sizeof(req->cmd) > sizeof(cmd->cmnd)); memcpy(cmd->cmnd, req->cmd, sizeof(cmd->cmnd)); cmd->cmd_len = req->cmd_len; if (!req->data_len)