Revision 12be96f2e8e8706c22fbc41f17480d8f84b8b8f3 authored by Alexander Potapenko on 15 May 2018, 13:32:36 UTC, committed by Alexander Potapenko on 28 August 2018, 10:29:17 UTC
These functions touch memory one block at a time. Because they're often implemented in assembly, we just unpoison the output blocks and check the inputs.
1 parent 2a08666
umc-drv.c
/*
* UWB Multi-interface Controller driver management.
*
* Copyright (C) 2007 Cambridge Silicon Radio Ltd.
*
* This file is released under the GNU GPL v2.
*/
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/uwb/umc.h>
int __umc_driver_register(struct umc_driver *umc_drv, struct module *module,
const char *mod_name)
{
umc_drv->driver.name = umc_drv->name;
umc_drv->driver.owner = module;
umc_drv->driver.mod_name = mod_name;
umc_drv->driver.bus = &umc_bus_type;
return driver_register(&umc_drv->driver);
}
EXPORT_SYMBOL_GPL(__umc_driver_register);
/**
* umc_driver_register - unregister a UMC capabiltity driver.
* @umc_drv: pointer to the driver.
*/
void umc_driver_unregister(struct umc_driver *umc_drv)
{
driver_unregister(&umc_drv->driver);
}
EXPORT_SYMBOL_GPL(umc_driver_unregister);
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...