Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc240e3f authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

sony: fix rfkill code



During the rfkill conversion I added code to call
sony_nc_rfkill_set with the wrong argument, causing
a segfault Reinette reported. The compiler could not
catch that because the argument is, and needs to be,
void *.

Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Reported-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent b91d0e36
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1135,8 +1135,7 @@ static void sony_nc_rfkill_update()

		if (hwblock) {
			if (rfkill_set_hw_state(sony_rfkill_devices[i], true))
				sony_nc_rfkill_set(sony_rfkill_devices[i],
						   true);
				sony_nc_rfkill_set((void *)i, true);
			continue;
		}