Skip to content

Commit

Permalink
NFC: pn533: Fix missing parenthesis
Browse files Browse the repository at this point in the history
This is a quite critical patch as it fixes potential reference to
undefined general_bytes which were never set correctly on target
activation due to missing parenthesis.

Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Waldemar Rymarkiewicz authored and Samuel Ortiz committed Jan 9, 2013
1 parent 390a1bd commit 8a0ecfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/nfc/pn533.c
Original file line number Diff line number Diff line change
Expand Up @@ -1724,9 +1724,10 @@ static int pn533_activate_target_nfcdep(struct pn533 *dev)

rsp = (struct pn533_cmd_activate_response *)resp->data;
rc = rsp->status & PN533_CMD_RET_MASK;
if (rc != PN533_CMD_RET_SUCCESS)
if (rc != PN533_CMD_RET_SUCCESS) {
dev_kfree_skb(resp);
return -EIO;
}

/* ATR_RES general bytes are located at offset 16 */
gt_len = resp->len - 16;
Expand Down

0 comments on commit 8a0ecfe

Please sign in to comment.