drivers/media/radio/si470x/radio-si470x-i2c.c:463:25-30: ERROR: reference preceded by free on line 461 (fwd)
PATCH 58/81 drivers/media/radio/si470x/radio-si470x-i2c.c:463:25-30: ERROR: reference preceded by free on line 461 (fwd)
It looks like the kfree of radio should be moved later.
julia
---------- Forwarded message ----------
Date: Sun, 22 Dec 2019 17:05:41 +0800
From: kbuild test robot <[email protected]>
To: kbuild(a)lists.01.org
Cc: Julia Lawall <[email protected]>
Subject: [sashal-linux-stable:queue-4.9 58/81]
drivers/media/radio/si470x/radio-si470x-i2c.c:463:25-30: ERROR: reference preceded by free on line 461
CC: kbuild-all(a)lists.01.org
BCC: philip.li(a)intel.com
TO: Alexander Levin <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.9 head: c1606b16ad2ef060272ddc88b3727c23e09ea618 commit: d4250aec774add26976e42952fb6f58e59289d1a [58/81] media: si470x-i2c: add missed operations in remove
:::::: branch date: 8 hours ago
:::::: commit date: 8 hours ago
If you fix the issue, kindly add following tag
Quoted 1 line
Quoted 1 line
drivers/media/radio/si470x/radio-si470x-i2c.c:463:25-30: ERROR: reference preceded by free on line 461
# https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=d4250aec774add26976e42952fb6f58e59289d1a
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git remote update sashal-linux-stable
git checkout d4250aec774add26976e42952fb6f58e59289d1a
vim +463 drivers/media/radio/si470x/radio-si470x-i2c.c
cc35bbddfe10f7 Joonyoung Shim 2009-08-09 450
9dcb79c2eedb5b Tobias Lorenz 2009-08-10 451
9dcb79c2eedb5b Tobias Lorenz 2009-08-10 452 /*
9dcb79c2eedb5b Tobias Lorenz 2009-08-10 453 * si470x_i2c_remove - remove the device
9dcb79c2eedb5b Tobias Lorenz 2009-08-10 454 */
4c62e9764ab403 Greg Kroah-Hartman 2012-12-21 455 static int si470x_i2c_remove(struct i2c_client *client)
cc35bbddfe10f7 Joonyoung Shim 2009-08-09 456 {
cc35bbddfe10f7 Joonyoung Shim 2009-08-09 457 struct si470x_device *radio = i2c_get_clientdata(client);
cc35bbddfe10f7 Joonyoung Shim 2009-08-09 458
fe2137dd4e6e4b Joonyoung Shim 2009-12-10 459 free_irq(client->irq, radio);
4967d53dbbcebf Hans Verkuil 2012-05-04 460 video_unregister_device(&radio->videodev);
cc35bbddfe10f7 Joonyoung Shim 2009-08-09 @461 kfree(radio);
cc35bbddfe10f7 Joonyoung Shim 2009-08-09 462
d4250aec774add Chuhong Yuan 2019-11-10 @463 v4l2_ctrl_handler_free(&radio->hdl);
d4250aec774add Chuhong Yuan 2019-11-10 464 v4l2_device_unregister(&radio->v4l2_dev);
cc35bbddfe10f7 Joonyoung Shim 2009-08-09 465 return 0;
cc35bbddfe10f7 Joonyoung Shim 2009-08-09 466 }
cc35bbddfe10f7 Joonyoung Shim 2009-08-09 467---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation