projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e394ae
)
[SCSI] scsi_lib.c: use BUILD_BUG_ON
author
Alexey Dobriyan
<adobriyan@gmail.com>
Sun, 8 Oct 2006 11:55:55 +0000
(15:55 +0400)
committer
James Bottomley
<jejb@mulgrave.il.steeleye.com>
Wed, 25 Oct 2006 22:12:29 +0000
(15:12 -0700)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/scsi_lib.c
b/drivers/scsi/scsi_lib.c
index 743f67ed76400e1433d8f4bbd00d2bf91bd8fbca..d2c02df12fdcb8b6b072a7a7e57500b21263a3d6 100644
(file)
--- a/
drivers/scsi/scsi_lib.c
+++ b/
drivers/scsi/scsi_lib.c
@@
-1084,7
+1084,7
@@
static void scsi_setup_blk_pc_cmnd(struct scsi_cmnd *cmd)
{
struct request *req = cmd->request;
- BUG_ON(sizeof(req->cmd) > sizeof(cmd->cmnd));
+ BU
ILD_BU
G_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)