On Thu, Jan 21, 2021 at 04:47:37PM +0800, 慕冬亮 wrote: > ## Patch > > I propose to memset reg variable before invoking > rt2x00usb_vendor_req_buff_lock/rt2x00usb_vendor_request_buff. > > ------------------------------------------------------------------------------------------------------------------------ > diff --git a/drivers/net/wireless/ralink/rt2x00/rt2500usb.c > b/drivers/net/wireless/ralink/rt2x00/rt2500usb.c > index fce05fc88aaf..f6c93a25b18c 100644 > --- a/drivers/net/wireless/ralink/rt2x00/rt2500usb.c > +++ b/drivers/net/wireless/ralink/rt2x00/rt2500usb.c > @@ -48,6 +48,7 @@ static u16 rt2500usb_register_read(struct rt2x00_dev > *rt2x00dev, > const unsigned int offset) > { > __le16 reg; > + memset(®, 0, sizeof(reg)); Simpler would be just to initialize like this: __le16 reg = 0; Stanislaw