dbason / crystalhd

Broadcom Crystal HD Hardware Decoder (BCM70012/70015) driver on Ubuntu
39 stars 11 forks source link

crystalhd_misc: Fix 5.8 mmap_sem error #26

Closed valerierx closed 3 years ago

valerierx commented 3 years ago

Since Linux 5.8, mmap_sem has been renamed to mmap_lock according to this patch. The kernel module builds without any error with this patch, I haven't tested it yet since my BCM70015 arrives in a month.

dlenski commented 3 years ago

Per the patch:

The proper fix is to replace down_write(&mm->mmap_sem) with mmap_write_lock(mm) and up_write(&mm->mmap_sem) with mmap_write_unlock(mm)

This PR does exactly that. :+1:

Merging.