Bug #1237
open
68_1 model is incomplete without usb_get_urb()
Added by Alexey Khoroshilov over 13 years ago.
Updated over 13 years ago.
Category:
Rules and Models
Detected in build:
3a5698a
Description
usb_get_urb() and usb_free_urb() are dual functions, so it is not correct to have just one of them in the model.
The functions usb_get_urb and usb_free_urb are not dual actually, because usb_free_urb may be called without usb_get_urb
and the function usb_get_urb does not allocates memory, so it can't be called without usb_alloc_urb.
Therefore the topic of the bug is correct, but the right description of the bug is that for each call usb_get_urb() with nonzero parameter there are must be the call to usb_free_urb with the same parameter.
If you have any unsafes with usb_get_urb, it will be helpful to check that the call to usb_alloc_urb was performed before usb_get_urb. Without it the false unsafes will not go out even with the new model function.
- Category set to Rules and Models
- Assignee set to Vadim Mutilin
Also available in: Atom
PDF