mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
misc: mods: update MODS kernel driver to 3.94
Change-Id: Ib80e8ab4685e4edf48df6dcd3aa36e2efe7fdbcb Signed-off-by: Chris Dragan <kdragan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2188947 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Laxman Dewangan
parent
003f79282f
commit
9896b7bddc
@@ -733,14 +733,16 @@ static int mods_krnl_close(struct inode *ip, struct file *fp)
|
||||
|
||||
mods_disable_all_devices(client);
|
||||
|
||||
if (atomic_read(&client->num_allocs) ||
|
||||
atomic_read(&client->num_pages)) {
|
||||
{
|
||||
unsigned long num_allocs = atomic_read(&client->num_allocs);
|
||||
unsigned long num_pages = atomic_read(&client->num_pages);
|
||||
|
||||
mods_error_printk("not all allocations have been freed, allocs=%u, pages=%u\n",
|
||||
(unsigned int)atomic_read(&client->num_allocs),
|
||||
(unsigned int)atomic_read(&client->num_pages));
|
||||
if (!final_err)
|
||||
final_err = -ENOMEM;
|
||||
if (num_allocs || num_pages) {
|
||||
mods_error_printk("not all allocations have been freed, allocs=%lu, pages=%lu\n",
|
||||
num_allocs, num_pages);
|
||||
if (!final_err)
|
||||
final_err = -ENOMEM;
|
||||
}
|
||||
}
|
||||
|
||||
mods_free_client(client->client_id);
|
||||
@@ -1569,6 +1571,11 @@ static long mods_krnl_ioctl(struct file *fp,
|
||||
esc_mods_free_pages, MODS_FREE_PAGES);
|
||||
break;
|
||||
|
||||
case MODS_ESC_MERGE_PAGES:
|
||||
MODS_IOCTL(MODS_ESC_MERGE_PAGES,
|
||||
esc_mods_merge_pages, MODS_MERGE_PAGES);
|
||||
break;
|
||||
|
||||
case MODS_ESC_GET_PHYSICAL_ADDRESS:
|
||||
MODS_IOCTL(MODS_ESC_GET_PHYSICAL_ADDRESS,
|
||||
esc_mods_get_phys_addr,
|
||||
|
||||
Reference in New Issue
Block a user