]> asedeno.scripts.mit.edu Git - linux.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)
commiteb37430d402de7d1cb2f37a5fdc80620dd98dc1d
tree1337ed37cd9a11458110c4e4659f85c7b9413bef
parent69a1d98c831ec64cbfd381f5dcb6697e1445d239
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: 8ce76bff0e6a ("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