aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/asix_devices.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2018-07-16 20:26:13 +0000
committerDavid S. Miller <[email protected]>2018-07-18 20:27:43 +0000
commit107d01f5ba10f4162c38109496607eb197059064 (patch)
treedbb381487b49fdd6500187fbb7816b521a4f403b /drivers/net/usb/asix_devices.c
parentMerge branch 'smc-fixes' (diff)
downloadkernel-107d01f5ba10f4162c38109496607eb197059064.tar.gz
kernel-107d01f5ba10f4162c38109496607eb197059064.zip
lib/rhashtable: consider param->min_size when setting initial table size
rhashtable_init() currently does not take into account the user-passed min_size parameter unless param->nelem_hint is set as well. As such, the default size (number of buckets) will always be HASH_DEFAULT_SIZE even if the smallest allowed size is larger than that. Remediate this by unconditionally calling into rounded_hashtable_size() and handling things accordingly. Signed-off-by: Davidlohr Bueso <[email protected]> Acked-by: Herbert Xu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/usb/asix_devices.c')
0 files changed, 0 insertions, 0 deletions