Patch "firewire: core: correct range of block for case of switch statement" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    firewire: core: correct range of block for case of switch statement

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     firewire-core-correct-range-of-block-for-case-of-swi.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit d2af9bfdc528ce9bf46b13f424147fd4cb38dcde
Author: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
Date:   Sat Aug 10 16:04:03 2024 +0900

    firewire: core: correct range of block for case of switch statement
    
    [ Upstream commit ebb9d3ca8f7efc1b6a2f1750d1058eda444883d0 ]
    
    A commit d8527cab6c31 ("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: d8527cab6c31 ("firewire: cdev: implement new event to notify response subaction with time stamp")
    Link: https://lore.kernel.org/r/20240810070403.36801-1-o-takashi@xxxxxxxxxxxxx
    Signed-off-by: Takashi Sakamoto <o-takashi@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c
index 6274b86eb9437..73cc2f2dcbf92 100644
--- a/drivers/firewire/core-cdev.c
+++ b/drivers/firewire/core-cdev.c
@@ -598,11 +598,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);




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux