Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20958
b: refs/heads/master
c: 6a88231
h: refs/heads/master
v: v3
  • Loading branch information
Max Asbock authored and Linus Torvalds committed Mar 10, 2006
1 parent 96a90ea commit 49d9beb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: a6bf527091b1dd40f1b6a496812ce7520621c282
refs/heads/master: 6a88231fc7da311e4da4ce2011d1a132c80c145a
9 changes: 5 additions & 4 deletions trunk/drivers/misc/ibmasm/ibmasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,16 @@ struct command {
static inline void command_put(struct command *cmd)
{
unsigned long flags;
spinlock_t *lock = cmd->lock;

spin_lock_irqsave(cmd->lock, flags);
kobject_put(&cmd->kobj);
spin_unlock_irqrestore(cmd->lock, flags);
spin_lock_irqsave(lock, flags);
kobject_put(&cmd->kobj);
spin_unlock_irqrestore(lock, flags);
}

static inline void command_get(struct command *cmd)
{
kobject_get(&cmd->kobj);
kobject_get(&cmd->kobj);
}


Expand Down

0 comments on commit 49d9beb

Please sign in to comment.