remarkable-linux/drivers/macintosh
Jean Delvare 6f6b35e133 macintosh: Don't assume i2c device probing always succeeds
If i2c device probing fails, then there is no driver to dereference
after calling i2c_new_device(). Stop assuming that probing will always
succeed, to avoid NULL pointer dereferences. We have an easier access
to the driver anyway.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Tim Shepard <shep@alum.mit.edu>
Cc: Colin Leroy <colin@colino.net>
2009-10-04 22:53:46 +02:00
..
adb-iop.c
adb.c
adbhid.c
ans-lcd.c
ans-lcd.h
apm_emu.c
Kconfig
mac_hid.c
macio-adb.c
macio_asic.c powerpc/macio: Don't the address of an array element before boundchecking 2009-08-20 10:29:26 +10:00
macio_sysfs.c
Makefile
mediabay.c
nvram.c
rack-meter.c trivial: remove unnecessary semicolons 2009-09-21 15:14:58 +02:00
smu.c
therm_adt746x.c macintosh: Don't assume i2c device probing always succeeds 2009-10-04 22:53:46 +02:00
therm_pm72.c macintosh: Don't assume i2c device probing always succeeds 2009-10-04 22:53:46 +02:00
therm_pm72.h
therm_windtunnel.c powerpc/powermac: Thermal control turns system off too eagerly 2009-09-02 15:46:00 +10:00
via-cuda.c
via-macii.c
via-maciisi.c m68k: count can reach 51, not 50 2009-08-26 23:14:49 +02:00
via-pmu-backlight.c
via-pmu-event.c
via-pmu-event.h
via-pmu-led.c leds: Fix LED names 2009-09-07 14:37:27 +01:00
via-pmu.c
via-pmu68k.c
windfarm.h
windfarm_core.c
windfarm_cpufreq_clamp.c
windfarm_lm75_sensor.c macintosh: Don't assume i2c device probing always succeeds 2009-10-04 22:53:46 +02:00
windfarm_max6690_sensor.c macintosh: Don't assume i2c device probing always succeeds 2009-10-04 22:53:46 +02:00
windfarm_pid.c
windfarm_pid.h
windfarm_pm81.c
windfarm_pm91.c
windfarm_pm112.c
windfarm_pm121.c
windfarm_smu_controls.c
windfarm_smu_sat.c macintosh: Don't assume i2c device probing always succeeds 2009-10-04 22:53:46 +02:00
windfarm_smu_sensors.c