Benjamin Herrenschmidt
265aac26bc
fsi: Don't use device_unregister() in fsi_master_register()
...
In the error path of fsi_master_register(), we currently
use device_unregister(). This will cause the last reference
to the structure to be dropped, thus freeing the enclosing
structure, which isn't what the callers want.
Use device_del() instead so that we return to the caller
with a refcount of 1. The caller can then assume that it
must use put_device() after a call to fsi_master_register()
regardless of whether the latter suceeded or failed.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org >
2018-07-12 12:05:11 +10:00
..
2018-06-08 17:21:52 -07:00
2018-06-06 13:49:25 -07:00
2018-06-10 13:01:12 -07:00
2018-06-08 11:10:58 -07:00
2018-06-04 10:58:12 -07:00
2018-06-08 13:36:19 -07:00
2018-05-30 15:45:01 +02:00
2018-06-11 18:15:22 -07:00
2018-06-09 11:14:30 -07:00
2018-06-09 12:06:24 -07:00
2018-06-09 12:06:24 -07:00
2018-06-06 18:39:49 -07:00
2018-06-11 18:15:22 -07:00
2018-06-07 10:23:33 -07:00
2018-06-05 15:51:21 -07:00
2018-06-08 17:21:52 -07:00
2018-06-08 11:02:21 -07:00
2018-06-06 11:15:43 -07:00
2018-06-11 18:19:45 -07:00
2018-07-12 12:05:11 +10:00
2018-06-08 10:31:52 -07:00
2018-06-11 07:17:36 -07:00
2018-06-08 10:28:24 +02:00
2018-06-10 13:01:12 -07:00
2018-06-07 10:23:33 -07:00
2018-06-11 12:09:19 -07:00
2018-06-05 16:20:22 -07:00
2018-06-05 16:14:12 -07:00
2018-06-05 16:26:47 -04:00
2018-06-09 10:32:39 -07:00
2018-06-07 13:04:07 -07:00
2018-06-11 07:20:17 -07:00
2018-06-11 12:22:12 -07:00
2018-06-06 12:05:19 +02:00
2018-06-04 13:57:43 -07:00
2018-06-05 09:20:27 -06:00
2018-06-07 10:23:33 -07:00
2018-06-07 13:35:59 -07:00
2018-06-09 12:01:36 -07:00
2018-06-11 17:49:09 -07:00
2018-06-10 13:01:12 -07:00
2018-06-11 07:20:17 -07:00
2018-06-07 12:45:58 -07:00
2018-06-05 16:11:43 -07:00
2018-06-11 17:49:09 -07:00
2018-06-10 19:25:23 -07:00
2018-05-31 12:43:14 +02:00
2018-06-05 16:20:22 -07:00
2018-06-08 15:16:44 -07:00
2018-06-08 13:36:19 -07:00
2018-06-11 18:19:45 -07:00
2018-05-30 15:38:21 +05:30
2018-06-04 10:58:12 -07:00
2018-06-07 12:45:58 -07:00
2018-05-29 16:38:16 +01:00
2018-06-06 18:39:49 -07:00
2018-06-09 12:06:24 -07:00
2018-06-11 07:20:17 -07:00
2018-06-07 12:34:37 -07:00
2018-06-09 12:11:09 -07:00
2018-06-04 07:13:40 +01:00
2018-06-08 13:08:57 -07:00
2018-05-29 20:10:34 -07:00
2018-06-11 18:15:22 -07:00
2018-06-04 12:35:03 -07:00
2018-06-11 07:20:17 -07:00
2018-06-10 13:01:12 -07:00
2018-06-10 13:01:12 -07:00
2018-06-11 18:19:45 -07:00
2018-06-05 16:20:22 -07:00
2018-06-05 09:38:39 -07:00
2018-06-11 07:23:19 -07:00
2018-06-10 13:01:12 -07:00
2018-06-06 17:27:14 -07:00
2018-06-07 10:23:33 -07:00
2018-06-06 17:27:14 -07:00
2018-06-04 13:57:43 -07:00
2018-06-06 18:39:49 -07:00
2018-06-11 07:23:19 -07:00
2018-06-05 16:20:22 -07:00
2018-06-07 12:41:43 +02:00
2018-06-08 09:24:54 -07:00
2018-06-06 17:27:14 -07:00