[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Ykxo+0p5IeeM7mge@zn.tnic>
Date: Tue, 5 Apr 2022 18:06:19 +0200
From: Borislav Petkov <bp@...en8.de>
To: Takashi Iwai <tiwai@...e.de>
Cc: LKML <linux-kernel@...r.kernel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, alsa-devel@...a-project.org
Subject: Re: [PATCH 02/11] ALSA: usb-audio: Fix undefined behavior due to
shift overflowing the constant
On Tue, Apr 05, 2022 at 05:32:48PM +0200, Takashi Iwai wrote:
> > +#define USB_ID(vendor, product) ((((unsigned int)vendor) << 16) | (product))
>
> Parentheses are needed around vendor (as usual for a macro).
> Could you resubmit with it?
Or you can fix it up while applying. :)
Thx.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette
Powered by blists - more mailing lists