Skip to content

Commit 3150658

Browse files
committed
Fix dfu infinite loop
1 parent 31af8c4 commit 3150658

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kernel/realsense/d4xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5804,7 +5804,7 @@ static int ds5_dfu_device_open(struct inode *inode, struct file *file)
58045804
#ifdef CONFIG_TEGRA_CAMERA_PLATFORM
58055805
/* get i2c controller and set dfu bus clock rate */
58065806
while (parent && i2c_parent_is_i2c_adapter(parent))
5807-
parent = i2c_parent_is_i2c_adapter(state->client->adapter);
5807+
parent = i2c_parent_is_i2c_adapter(parent);
58085808

58095809
if (!parent) {
58105810
mutex_unlock(&state->lock);
@@ -5956,7 +5956,7 @@ static int ds5_dfu_device_release(struct inode *inode, struct file *file)
59565956
#ifdef CONFIG_TEGRA_CAMERA_PLATFORM
59575957
/* get i2c controller and restore bus clock rate */
59585958
while (parent && i2c_parent_is_i2c_adapter(parent))
5959-
parent = i2c_parent_is_i2c_adapter(state->client->adapter);
5959+
parent = i2c_parent_is_i2c_adapter(parent);
59605960
if (!parent) {
59615961
mutex_unlock(&state->lock);
59625962
return 0;

0 commit comments

Comments
 (0)