|
@@ -186,13 +186,11 @@ static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev,
|
|
set_cpus_allowed(current, node_to_cpumask(node));
|
|
set_cpus_allowed(current, node_to_cpumask(node));
|
|
/* And set default memory allocation policy */
|
|
/* And set default memory allocation policy */
|
|
oldpol = current->mempolicy;
|
|
oldpol = current->mempolicy;
|
|
- current->mempolicy = &default_policy;
|
|
|
|
- mpol_get(current->mempolicy);
|
|
|
|
|
|
+ current->mempolicy = NULL; /* fall back to system default policy */
|
|
#endif
|
|
#endif
|
|
error = drv->probe(dev, id);
|
|
error = drv->probe(dev, id);
|
|
#ifdef CONFIG_NUMA
|
|
#ifdef CONFIG_NUMA
|
|
set_cpus_allowed(current, oldmask);
|
|
set_cpus_allowed(current, oldmask);
|
|
- mpol_free(current->mempolicy);
|
|
|
|
current->mempolicy = oldpol;
|
|
current->mempolicy = oldpol;
|
|
#endif
|
|
#endif
|
|
return error;
|
|
return error;
|