Project

General

Profile

Actions

Bug #7943

open

linux:usb:urb allocated memory with kzalloc

Added by Vadim Mutilin about 7 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
Requirement specifications
Target version:
-
Start date:
02/02/2017
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

Description

ldv_usb_alloc_urb should return memory initialized with zeroes.
Instead of arbitrary memory

 /* NOTE Choose an arbitrary memory location. */
32 void *arbitrary_memory = ldv_undef_ptr();

See example of false unsafe
http://ldvstore:8998/marks/unsafe/create/75882/
where usb_unanchor_urb should not do usb_put_urb, because urb->anchor should be zero
Usb_alloc_urb initializes urb with zeros and usb_anchor_urb was not called.

No data to display

Actions

Also available in: Atom PDF