In pfg_create()
create_img_proc()
create_img_file()
create_img_ip()
kmalloc(..., GFP_KERNEL) -> kmalloc(..., GFP_ATOMIC)
cause called only spinlocks.
Change-Id: I0a8b4a5c132b9c76e54515ec75f80c807b2128ad
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
{
struct img_file *file;
- file = kmalloc(sizeof(*file), GFP_KERNEL);
+ file = kmalloc(sizeof(*file), GFP_ATOMIC);
if (file == NULL) {
pr_err("%s: failed to allocate memory\n", __func__);
return NULL;
{
struct img_ip *ip;
- ip = kmalloc(sizeof(*ip), GFP_KERNEL);
+ ip = kmalloc(sizeof(*ip), GFP_ATOMIC);
if (ip) {
struct probe_info *info_new;
{
struct img_proc *proc;
- proc = kmalloc(sizeof(*proc), GFP_KERNEL);
+ proc = kmalloc(sizeof(*proc), GFP_ATOMIC);
if (proc) {
INIT_LIST_HEAD(&proc->file_list);
rwlock_init(&proc->rwlock);
static struct pf_group *pfg_create(void)
{
- struct pf_group *pfg = kmalloc(sizeof(*pfg), GFP_KERNEL);
+ struct pf_group *pfg = kmalloc(sizeof(*pfg), GFP_ATOMIC);
if (pfg == NULL)
return NULL;