diff options
author | Alex Elder <[email protected]> | 2013-08-22 11:31:31 -0500 |
---|---|---|
committer | Mike Turquette <[email protected]> | 2013-08-27 16:05:39 -0700 |
commit | 7f7ed584d11be77a7521d170431bb14bc32a5980 (patch) | |
tree | 805ab187a9fce4b7c20170ceeffe9d074ea8da53 /fs/jbd/commit.c | |
parent | 1ec5502ef20acc0af5c9172aac4652cd7cafd852 (diff) |
clk: get matching entry under lock in of_clk_init()
Currently of_clk_init() finds a matching device node while holding
the device tree spinlock. When a matching device node is found, the
lock is dropped and then re-acquired in order to get a reference
to the matching device id structure.
Acquiring the spinlock twice is unnecessary (and it opens a
vulnerable window that could conceivably lead to errors).
There already exists an interface for both finding and taking a
reference to a device id under lock, so use it.
Signed-off-by: Alex Elder <[email protected]>
Reviewed-by: Christian Daudt <[email protected]>
Reviewed-by: Markus Mayer <[email protected]>
Reviewed-by: Matt Porter <[email protected]>
Signed-off-by: Mike Turquette <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions