]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ks7010: call 'hostif_mib_set_request_int' instead of 'hostif_mib_set_request...
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 13 Jul 2018 07:36:59 +0000 (09:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2018 08:04:11 +0000 (10:04 +0200)
commit8a669ebd94cabf218da0a2a672fbb3d6133277e6
tree1337ed37cd9a11458110c4e4659f85c7b9413bef
parenta6914eb0830296190b37d87f24d2ec9b0fe66b6e
staging: ks7010: call 'hostif_mib_set_request_int' instead of 'hostif_mib_set_request_bool'

'hostif_mib_set_request_bool' function receives a bool as value and
send the received value with MIB_VALUE_TYPE_BOOL type. There is
one case where the value passed is not a boolean one but
'MCAST_FILTER_PROMISC' which is '2'. Call hostif_mib_set_request_int
instead for related multicast enumeration. This changes original
code behaviour but seems to be the right way to do this.

Fixes: 28b4bb4424d6 ("staging: ks7010: add new helpers to achieve mib set request and simplify code")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_hostif.c