Re: Re: [PATCH] agp: check if ndevs is zero before enabling node

2021-05-14 Thread Yiyuan GUO
From: Yiyuan GUO I guess it may only happen in theory, but maybe there is no harm in adding a simple check? Thanks.

Re: [PATCH] agp: check if ndevs is zero before enabling node

2021-05-13 Thread Greg KH
On Thu, May 13, 2021 at 09:53:32PM +0800, Yiyuan GUO wrote: > In function agp_3_5_enable from drivers/char/agp/isoch.c, the > variable ndevs may remain zero if all AGP devices have type of > "Bridge" or "Unclassified device". Can that actually happen with real hardware? Given the age of AGP code,