mmc: remove unnecessary call to single_release

PD#151361: Oops when doing OTA upgrading

    in single_release file->private_data will be dereferenced,
which is assigned a value by single_open. So if signle_open
is not called before single_release, an "unable to handle
kernel NULL pointer..." issue will appear.
    But in this case, since single_open and seq_read is not
called, there is no need calling single_release to release
mem allocated by single_open and seq_read. Simpley remove
calling single_release is the best choise

Change-Id: I21882da33cc2509c1b5b42daabbd7c6f3fdc4542
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
This commit is contained in:
Jiamin Ma
2017-09-22 16:16:06 +08:00
parent 905ac8c7f3
commit 84cc35e6e1

View File

@@ -252,7 +252,6 @@ static const struct file_operations dtb_ops = {
.read = mmc_dtb_read,
.write = mmc_dtb_write,
.unlocked_ioctl = mmc_dtb_ioctl,
.release = single_release,
};
int amlmmc_dtb_init(struct mmc_card *card)