greybus: loopback: fix the type attribute check
authorAlex Elder <elder@linaro.org>
Tue, 12 May 2015 02:16:34 +0000 (21:16 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 12 May 2015 17:25:14 +0000 (10:25 -0700)
commita04c640e5cf342a491afc06b0d931b7a046aa76b
tree6266ababd91670f7a6b06569fb18c4cdc21c9568
parent64a54801ae806d482d72fce9583cce7409ec146c
greybus: loopback: fix the type attribute check

In gb_loopback_check_attr(), the value of gb->type is checked for
validity.  The only valid values are 0, 1, and 2.  But the check
allows the value 3.  Fix that.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c