Re: [PATCH v0] media: dvbdev: adopts refcnt to avoid UAF

From: kernel test robot
Date: Mon Aug 08 2022 - 00:27:13 EST


Hi Lin,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on media-tree/master]
[also build test WARNING on linus/master v5.19 next-20220805]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Lin-Ma/media-dvbdev-adopts-refcnt-to-avoid-UAF/20220807-230449
base: git://linuxtv.org/media_tree.git master
reproduce: make htmldocs

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> include/media/dvbdev.h:203: warning: expecting prototype for dvb_device_get(). Prototype was for dvb_device_put() instead

vim +203 include/media/dvbdev.h

187
188 void *priv;
> 189 };
190
191 /**
192 * dvb_device_get - Increase dvb_device reference
193 *
194 * @dvbdev: pointer to struct dvb_device
195 */
196 struct dvb_device *dvb_device_get(struct dvb_device *dvbdev);
197
198 /**
199 * dvb_device_get - Decrease dvb_device reference
200 *
201 * @dvbdev: pointer to struct dvb_device
202 */
> 203 void dvb_device_put(struct dvb_device *dvbdev);
204

--
0-DAY CI Kernel Test Service
https://01.org/lkp