mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 13:03:25 +01:00
firewire: core: correct range of block for case of switch statement
A commitd8527cab6c
("firewire: cdev: implement new event to notify response subaction with time stamp") adds an additional case, FW_CDEV_EVENT_RESPONSE2, into switch statement in complete_transaction(). However, the range of block is beyond to the case label and reaches neibour default label. This commit corrects the range of block. Fortunately, it has few impacts in practice since the local variable in the scope under the label is not used in codes under default label. Fixes:d8527cab6c
("firewire: cdev: implement new event to notify response subaction with time stamp") Link: https://lore.kernel.org/r/20240810070403.36801-1-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
This commit is contained in:
parent
e4c8b8014f
commit
ebb9d3ca8f
1 changed files with 1 additions and 1 deletions
|
@ -589,11 +589,11 @@ static void complete_transaction(struct fw_card *card, int rcode, u32 request_ts
|
|||
queue_event(client, &e->event, rsp, sizeof(*rsp) + rsp->length, NULL, 0);
|
||||
|
||||
break;
|
||||
}
|
||||
default:
|
||||
WARN_ON(1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Drop the idr's reference */
|
||||
client_put(client);
|
||||
|
|
Loading…
Reference in a new issue