[KJ] [PATCH] scsi/gdth.c: Added checks for return values of scsi_register()

ville palo ville.palo at vi64pa.net
Sat Sep 2 09:15:49 PDT 2006


On Sat, 2006-09-02 at 17:21 +0200, walter harms wrote:
> i am not sure how the driver behaves but i would expect something like:
> shp = scsi_register(shtp,sizeof(gdth_num_str);
> if ( shp == NULL) {
> 	-inform user
> 	-cleanup debris
> }
> 

I found it be a common way in this driver:

shp = scsi_register(shtp,sizeof(gdth_ext_str));
if (shp == NULL)
	continue;  

Several same kind of segments can be found in gdth.c.






More information about the Kernel-janitors mailing list