[Linux-Kernel] LKML: cw1200: Fix a signedness bug in cw1200_load_firmware()

Guillermo Austin Kim|2019년 10월 3일
Posts

[Linux-Kernel] LKML: cw1200: Fix a signedness bug in cw1200_load_firmware()

Guillermo Austin Kim|2019년 10월 3일

[Linux-Kernel] LKML: cw1200: Fix a signedness bug in cw1200_load_firmware() 출처https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git/commit/ 흥미로운 패치 코드다. > > cw1200: Fix a signedness bug in cw1200_load_firmware() > The "priv->hw_type" is an enum and in this context GCC will treat it> as an unsigned int so the error handling will never trigger.> > Fi