Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344765
b: refs/heads/master
c: 37419d6
h: refs/heads/master
i:
  344763: e934331
v: v3
  • Loading branch information
Chris Boot authored and Nicholas Bellinger committed Dec 13, 2012
1 parent 5b633de commit 9994ea2
Show file tree
Hide file tree
Showing 2 changed files with 5 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: ed72a4d52add345595f09b360d6ac5f20428d361
refs/heads/master: 37419d674ca99739dbee5ada28b50aacc29c94e1
7 changes: 4 additions & 3 deletions trunk/drivers/target/sbp/sbp_target.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,16 +704,17 @@ static void session_maintenance_work(struct work_struct *work)
static int tgt_agent_rw_agent_state(struct fw_card *card, int tcode, void *data,
struct sbp_target_agent *agent)
{
__be32 state;
int state;

switch (tcode) {
case TCODE_READ_QUADLET_REQUEST:
pr_debug("tgt_agent AGENT_STATE READ\n");

spin_lock_bh(&agent->lock);
state = cpu_to_be32(agent->state);
state = agent->state;
spin_unlock_bh(&agent->lock);
memcpy(data, &state, sizeof(state));

*(__be32 *)data = cpu_to_be32(state);

return RCODE_COMPLETE;

Expand Down

0 comments on commit 9994ea2

Please sign in to comment.