From: Hans de Goede Date: Sun, 4 Jun 2006 18:23:01 +0000 (+0200) Subject: [PATCH] abituguru: Review fixes X-Git-Tag: v2.6.18-rc1~1081^2~226^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2392e0b907b9633c31be14ee75bb39fce348b01;p=pandora-kernel.git [PATCH] abituguru: Review fixes Fixes to the Abit uGuru driver as requested in review by Jean Delvare: - exactly calculate the sysfs_names array length using macro - use snprintf when generating names to double check that the sysfs_names array does not overflow. - use ARRAY_SIZE and / or defines to determine number of loops in for loops instead of using hardcoded values. - In abituguru_probe(), refactor the error path leaving a single call to kfree Signed-off-by: Hans de Goede Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed