Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142126
b: refs/heads/master
c: ebef264
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and James Bottomley committed Apr 3, 2009
1 parent 86acb56 commit ff31093
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0fdf96b67ac2649cc1ddb29b316a0db11586c6a8
refs/heads/master: ebef264bd90abb8bcafe29e5ba5492da4f7d4492
4 changes: 1 addition & 3 deletions trunk/drivers/scsi/scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,10 @@ scsi_pool_alloc_command(struct scsi_host_cmd_pool *pool, gfp_t gfp_mask)
{
struct scsi_cmnd *cmd;

cmd = kmem_cache_alloc(pool->cmd_slab, gfp_mask | pool->gfp_mask);
cmd = kmem_cache_zalloc(pool->cmd_slab, gfp_mask | pool->gfp_mask);
if (!cmd)
return NULL;

memset(cmd, 0, sizeof(*cmd));

cmd->sense_buffer = kmem_cache_alloc(pool->sense_slab,
gfp_mask | pool->gfp_mask);
if (!cmd->sense_buffer) {
Expand Down

0 comments on commit ff31093

Please sign in to comment.