{
struct img_file *file;
- file = kmalloc(sizeof(*file), GFP_ATOMIC);
+ file = kmalloc(sizeof(*file), GFP_KERNEL);
if (file == NULL) {
pr_err("%s: failed to allocate memory\n", __func__);
return ERR_PTR(-ENOMEM);
{
struct img_proc *proc;
- proc = kmalloc(sizeof(*proc), GFP_ATOMIC);
+ proc = kmalloc(sizeof(*proc), GFP_KERNEL);
if (proc) {
atomic_inc(&proc_counter);
INIT_LIST_HEAD(&proc->files.head);
/* struct pl_struct */
static struct pl_struct *create_pl_struct(struct sspt_proc *proc)
{
- struct pl_struct *pls = kmalloc(sizeof(*pls), GFP_ATOMIC);
+ struct pl_struct *pls = kmalloc(sizeof(*pls), GFP_KERNEL);
if (pls) {
INIT_LIST_HEAD(&pls->list);
static struct pf_group *pfg_create(void)
{
- struct pf_group *pfg = kmalloc(sizeof(*pfg), GFP_ATOMIC);
+ struct pf_group *pfg = kmalloc(sizeof(*pfg), GFP_KERNEL);
if (pfg == NULL)
return NULL;
{
struct sspt_feature *f;
- f = kmalloc(sizeof(*f), GFP_ATOMIC);
+ f = kmalloc(sizeof(*f), GFP_KERNEL);
if (f) {
struct sspt_feature_data *fd;
struct sspt_feature_img *fi;
{
struct sspt_feature_img *fi;
- fi = kmalloc(sizeof(*fi), GFP_ATOMIC);
+ fi = kmalloc(sizeof(*fi), GFP_KERNEL);
if (fi) {
INIT_LIST_HEAD(&fi->list);
fi->alloc = alloc;
{
int i, table_size;
struct hlist_head *heads;
- struct sspt_file *obj = kmalloc(sizeof(*obj), GFP_ATOMIC);
+ struct sspt_file *obj = kmalloc(sizeof(*obj), GFP_KERNEL);
if (obj == NULL)
return NULL;
obj->htable.bits = calculation_hash_bits(page_cnt);
table_size = htable_size(obj);
- heads = kmalloc(sizeof(*obj->htable.heads) * table_size, GFP_ATOMIC);
+ heads = kmalloc(sizeof(*obj->htable.heads) * table_size, GFP_KERNEL);
if (heads == NULL)
goto err;
{
struct sspt_filter *fl;
- fl = kmalloc(sizeof(*fl), GFP_ATOMIC);
+ fl = kmalloc(sizeof(*fl), GFP_KERNEL);
if (fl == NULL)
return NULL;
{
struct sspt_ip *ip;
- ip = kmalloc(sizeof(*ip), GFP_ATOMIC);
+ ip = kmalloc(sizeof(*ip), GFP_KERNEL);
if (!ip)
return NULL;
*/
struct slot_manager *create_sm_us(struct task_struct *task)
{
- struct slot_manager *sm = kmalloc(sizeof(*sm), GFP_ATOMIC);
+ struct slot_manager *sm = kmalloc(sizeof(*sm), GFP_KERNEL);
if (sm == NULL)
return NULL;