OSDN Git Service

greybus: endo: fix device-id allocation
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 21 Oct 2015 09:51:43 +0000 (11:51 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 21 Oct 2015 23:12:42 +0000 (16:12 -0700)
commit3014712fe1dc26640178319e55f3a80ce42a4775
treec51770db99529c6878d80275c9290c51a7527571
parent16cd787d2d54a47b1d8575bb96bff4b0edc7000b
greybus: endo: fix device-id allocation

During endo registration, a unique device id was allocated but then
never used. Instead the default dev_id 0 (due to kzalloc) was used for
device-generation and later for id-deallocation.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/endo.c